You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Hari Sankar Sivarama Subramaniyan (JIRA)" <ji...@apache.org> on 2014/11/07 23:32:34 UTC

[jira] [Updated] (HIVE-8786) ObjectStore.rollbackTransaction() should decrement openTrasactionCalls and not set it to 0

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

Hari Sankar Sivarama Subramaniyan updated HIVE-8786:
----------------------------------------------------
    Attachment: HIVE-8786.1.patch

cc-ing [~sushanth] and [~sershe] for review.

Thanks
Hari

> ObjectStore.rollbackTransaction()  should decrement openTrasactionCalls and not set it to 0
> -------------------------------------------------------------------------------------------
>
>                 Key: HIVE-8786
>                 URL: https://issues.apache.org/jira/browse/HIVE-8786
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>            Reporter: Hari Sankar Sivarama Subramaniyan
>            Assignee: Hari Sankar Sivarama Subramaniyan
>         Attachments: HIVE-8786.1.patch
>
>
> In ObjectStore.java,
> {noformat}
>  public void rollbackTransaction() {
>     if (openTrasactionCalls < 1) {
>       debugLog("rolling back transaction: no open transactions: " + openTrasactionCalls);
>       return;
>     }
>     openTrasactionCalls = 0;
> {noformat}
> I think the above code should be changes to openTrasactionCalls--; instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)