Wechar created HIVE-28916:
-----------------------------

             Summary: Fix unbalannced calls in ObjectStore rollback transaction
                 Key: HIVE-28916
                 URL: https://issues.apache.org/jira/browse/HIVE-28916
             Project: Hive
          Issue Type: Bug
            Reporter: Wechar
            Assignee: Wechar


Currently {{rollbackTransaction()}} always reset {{openTransactionCalls}} to 0, 
but it would cause unbalanced issue in nested transaction calls, for example:
{code:bash}
openTransaction()
  // new function1
  {
    openTransaction()
    commitTransaction() #1
  }

  // new function2
  {
    openTransaction()
    commitTransaction()
  }
commitTransaction() #2
{code}
If the new function1 rollbackTransaction in #1, then it would get unbalanced 
exception in #2.



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

Reply via email to