SourabhBadhya commented on code in PR #3908:
URL: https://github.com/apache/hive/pull/3908#discussion_r1064824054


##########
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:
   This was already using abortTxns call before. However, changed it now. 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]

Reply via email to