[ 
https://issues.apache.org/jira/browse/HIVE-11495?focusedWorklogId=818388&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-818388
 ]

ASF GitHub Bot logged work on HIVE-11495:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 19/Oct/22 09:34
            Start Date: 19/Oct/22 09:34
    Worklog Time Spent: 10m 
      Work Description: deniskuzZ commented on code in PR #3656:
URL: https://github.com/apache/hive/pull/3656#discussion_r999192218


##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java:
##########
@@ -8699,6 +8700,7 @@ public OpenTxnsResponse open_txns(OpenTxnRequest rqst) 
throws TException {
 
   @Override
   public void abort_txn(AbortTxnRequest rqst) throws TException {
+    rqst.setErrorMessage("ABORT_INTERRUPT");

Review Comment:
   can't we use TxnErrorMsg.ABORT_INTERRUPT.name() instead of hardcoded literal?





Issue Time Tracking
-------------------

    Worklog Id:     (was: 818388)
    Time Spent: 1h 20m  (was: 1h 10m)

> Add aborted reason to transaction information.
> ----------------------------------------------
>
>                 Key: HIVE-11495
>                 URL: https://issues.apache.org/jira/browse/HIVE-11495
>             Project: Hive
>          Issue Type: Improvement
>          Components: Metastore, Transactions
>    Affects Versions: 1.0.0
>            Reporter: Eugene Koifman
>            Assignee: Simhadri Govindappa
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> Should add TXNS.COMMENT field or something like that so that if the system 
> aborts a transaction (due to timeout, for example) we can add a message to 
> that effect to the aborted transaction.
> Another reason: Commit can fail due to a conflicting write from another txn 
> (since HIVE-13395)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to