SourabhBadhya commented on code in PR #3908: URL: https://github.com/apache/hive/pull/3908#discussion_r1064831721
########## standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java: ########## @@ -5771,12 +5789,11 @@ public void performTimeOuts() { close(rs, stmt, null); int numTxnsAborted = 0; for(List<Long> batchToAbort : timedOutTxns) { - if (abortTxns(dbConn, batchToAbort, true, false, false) == batchToAbort.size()) { + if (abortTxns(dbConn, batchToAbort, true, false, false, TxnErrorMsg.ABORT_TIMEOUT) == batchToAbort.size()) { dbConn.commit(); numTxnsAborted += batchToAbort.size(); //todo: add TXNS.COMMENT filed and set it to 'aborted by system due to timeout' Collections.sort(batchToAbort);//easier to read logs - LOG.info("Aborted the following transactions due to timeout: {}", batchToAbort.toString()); Review Comment: Added `sort()` in the generic logs section. Line 5790 - This log prints the number of aborted txns. Included this info (number of aborted txns) in the generic logs as well. -- 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