deniskuzZ commented on code in PR #5946: URL: https://github.com/apache/hive/pull/5946#discussion_r2194871107
########## standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java: ########## @@ -560,8 +560,10 @@ public void abortTxns(AbortTxnsRequest rqst) throws MetaException { if (transactionalListeners != null) { //Find the write details for this transaction. //Doing it here before the metadata tables are updated below. - for(Long txnId : txnIds) - txnWriteDetailsMap.put(txnId, getWriteIdsForTxnID(txnId)); + List<TxnWriteDetails> txnWriteDetails = getWriteIdsMappingForTxns(new HashSet<>(txnIds)); + txnWriteDetailsMap.putAll(txnWriteDetails.stream() Review Comment: why not simply ```` txnWriteDetailsMap = txnWriteDetails.stream() .collect(Collectors.groupingBy(TxnWriteDetails::getTxnId)); ```` -- 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