deniskuzZ commented on code in PR #3908: URL: https://github.com/apache/hive/pull/3908#discussion_r1064465388
########## ql/src/java/org/apache/hadoop/hive/ql/util/HiveStrictManagedMigration.java: ########## @@ -1450,7 +1446,9 @@ private TxnCtx generateTxnCtxForAlter( result = new TxnCtx(writeId, validWriteIds, txnId); } finally { if (result == null) { - msc.abortTxns(Lists.newArrayList(txnId)); + AbortTxnsRequest abortTxnsRequest = new AbortTxnsRequest(Lists.newArrayList(txnId)); + abortTxnsRequest.setErrorCode(TxnErrorMsg.ABORT_MIGRATION_TXN.getErrorCode()); + msc.abortTxns(abortTxnsRequest); Review Comment: there is a method to abort a single txn, why can't you use it? -- 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