klcopp commented on a change in pull request #1735:
URL: https://github.com/apache/hive/pull/1735#discussion_r540839467



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Worker.java
##########
@@ -556,20 +544,20 @@ protected Boolean findNextCompactionAndExecute(boolean 
computeStats) throws Inte
         verifyTableIdHasNotChanged(ci, t1);
 
         LOG.info("Completed " + ci.type.toString() + " compaction for " + 
ci.getFullPartitionName() + " in txn "
-            + JavaUtils.txnIdToString(compactorTxnId) + ", marking as 
compacted.");
+            + JavaUtils.txnIdToString(compactionTxn.getTxnId()) + ", marking 
as compacted.");

Review comment:
       Done

##########
File path: ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Worker.java
##########
@@ -483,12 +471,12 @@ protected Boolean findNextCompactionAndExecute(boolean 
computeStats) throws Inte
        * multiple statements in it (for query based compactor) which is not 
supported (and since
        * this case some of the statements are DDL, even in the future will not 
be allowed in a
        * multi-stmt txn. {@link Driver#setCompactionWriteIds(ValidWriteIdList, 
long)} */
-      compactorTxnId = msc.openTxn(ci.runAs, TxnType.COMPACTION);
+      compactionTxn.open(ci);
 
-      heartbeater = new CompactionHeartbeater(compactorTxnId, fullTableName, 
conf);
+      heartbeater = new CompactionHeartbeater(compactionTxn.getTxnId(), 
fullTableName, conf);

Review comment:
       Done




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to