/** * aborts timed out transactions */ private void runReaper() throws Exception { houseKeeperService.run(); }
AcidHouseKeeperService houseKeeperService = new AcidHouseKeeperService(); houseKeeperService.setConf(conf); houseKeeperService.run(); try { txnBatch.commit(); txnBatch.beginNextTransaction(); houseKeeperService.run(); try {
@Before public void setUp() throws Exception { TxnDbUtil.prepDb(conf); txnMgr = TxnManagerFactory.getTxnManagerFactory().getTxnManager(conf); txnMgr.getLockManager();//init lock manager Assert.assertTrue(txnMgr instanceof DbTxnManager); nextInput = 1; readEntities = new HashSet<ReadEntity>(); writeEntities = new HashSet<WriteEntity>(); conf.setTimeVar(HiveConf.ConfVars.HIVE_TIMEDOUT_TXN_REAPER_START, 0, TimeUnit.SECONDS); conf.setTimeVar(HiveConf.ConfVars.HIVE_TXN_TIMEOUT, 10, TimeUnit.SECONDS); houseKeeperService = new AcidHouseKeeperService(); houseKeeperService.setConf(conf); }
MetastoreTaskThread houseKeeperService = new AcidHouseKeeperService(); houseKeeperService.setConf(hiveConf);
AcidHouseKeeperService houseKeeperService = new AcidHouseKeeperService(); houseKeeperService.setConf(conf); houseKeeperService.run(); try { connection.commitTransaction(); connection.beginTransaction(); houseKeeperService.run(); try {