SourabhBadhya commented on code in PR #4313:
URL: https://github.com/apache/hive/pull/4313#discussion_r1212799645
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java:
##########
@@ -1203,6 +1252,79 @@ private static class RetentionCounters {
}
}
+ static class TxnCleanupQueueHandler {
+
+ public static void removeRetryQueueEntries(CompactionTxnHandler txnHandler,
+ Connection dbConn,
CompactionInfo info) throws MetaException, RetryException {
+ PreparedStatement pStmt = null;
+ String query = "DELETE FROM \"TXN_CLEANUP_QUEUE\" WHERE \"TCQ_DATABASE\"
= ? " +
Review Comment:
Done.
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java:
##########
@@ -498,20 +530,30 @@ public List<CompactionInfo> findReadyToCleanAborts(long
abortedTimeThreshold, in
checkAbortedTimeThreshold && rs.getLong(4) +
abortedTimeThreshold < systemTime;
int numAbortedTxns = rs.getInt(5);
if (numAbortedTxns > abortedThreshold || pastTimeThreshold) {
- CompactionInfo info = new CompactionInfo();
+ AbortTxnRequestInfo info = new AbortTxnRequestInfo();
info.dbname = rs.getString(1);
info.tableName = rs.getString(2);
info.partName = rs.getString(3);
// In this case, this field contains min open write txn ID.
- info.txnId = rs.getLong(6);
- readyToCleanAborts.add(info);
+ info.minOpenWriteTxnId = rs.getLong(6);
Review Comment:
Moved. 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.
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]