deniskuzZ commented on code in PR #5957: URL: https://github.com/apache/hive/pull/5957#discussion_r2217785351
########## ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Initiator.java: ########## @@ -213,17 +213,22 @@ protected String resolveUserToRunAs(Map<String, String> cache, Table t, Partitio @Override public void init(AtomicBoolean stop) throws Exception { super.init(stop); + initExecutorService(); Review Comment: can we move the executor initialization into run method instead? ```` public void run() { LOG.info("Starting Initiator thread"); ExecutorService compactionExecutor = CompactorUtil.createExecutorWithThreadFactory( conf.getIntVar(HiveConf.ConfVars.HIVE_COMPACTOR_REQUEST_QUEUE), COMPACTOR_INTIATOR_THREAD_NAME_FORMAT); .... } ```` the same could be done in Cleaner -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org