You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/04/21 17:02:00 UTC

[jira] [Updated] (HIVE-28916) Fix unbalannced calls in ObjectStore rollback transaction

     [ https://issues.apache.org/jira/browse/HIVE-28916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated HIVE-28916:
----------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Major
>              Labels: pull-request-available
>
> 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)