deniskuzZ commented on code in PR #4313:
URL: https://github.com/apache/hive/pull/4313#discussion_r1217877635


##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java:
##########
@@ -708,6 +759,13 @@ private void removeTxnComponents(Connection dbConn, 
CompactionInfo info) throws
     PreparedStatement pStmt = null;
     ResultSet rs = null;
     try {
+      /*
+       * Remove all abort retry associated metadata of table/partition in the 
COMPACTION_QUEUE both when compaction
+       * or abort cleanup is successful. We don't want a situation wherein we 
have a abort retry entry for a table
+       * but no corresponding entry in TXN_COMPONENTS table.
+       */
+      removeAbortRetryEntries(dbConn, info);

Review Comment:
   not needed, we should do the cleanup per cd_id



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

Reply via email to