deniskuzZ commented on a change in pull request #2879:
URL: https://github.com/apache/hive/pull/2879#discussion_r770713726
##########
File path:
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/QueryCompactor.java
##########
@@ -137,6 +140,10 @@ void runCompactionQueries(HiveConf conf, String
tmpTableName, StorageDescriptor
DriverUtils.runOnDriver(conf, user, sessionState, query, writeIds,
compactorTxnId);
}
commitCompaction(storageDescriptor.getLocation(), tmpTableName, conf,
writeIds, compactorTxnId);
+
+ if (su != null) {
Review comment:
why not call it from Worker, on compaction txn commit?
````
msc.commitTxn(txnId);
status = TxnStatus.COMMITTED;
su.gatherStats()
````
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]