[ https://issues.apache.org/jira/browse/HIVE-8850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14217231#comment-14217231 ]
Sushanth Sowmyan commented on HIVE-8850: ---------------------------------------- (Also, for context, one thing I should explicitly call out here is the reason for the original change here is that the transaction seems to have been invalidated by bonecp, so it does not satisfy the if condition for (currentTransaction.isActive() && transactionStatus != TXN_STATUS.ROLLBACK) when rollback is first called. Thus, as a result of that, we never set TXN_STATUS.ROLLBACK, which then causes commits further on from proceeding without realizing it shouldn't.) > ObjectStore:: rollbackTransaction() should set the transaction status to > TXN_STATUS.ROLLBACK irrespective of whether it is active or not > ---------------------------------------------------------------------------------------------------------------------------------------- > > Key: HIVE-8850 > URL: https://issues.apache.org/jira/browse/HIVE-8850 > Project: Hive > Issue Type: Bug > Components: Metastore > Reporter: Hari Sankar Sivarama Subramaniyan > Assignee: Hari Sankar Sivarama Subramaniyan > Attachments: HIVE-8850.1.patch > > > We can run into issues as described below: > Hive script adds 2800 partitions to a table and during this it can get a > SQLState 08S01 [Communication Link Error] and bonecp kill all the connections > in the pool. The partitions are added and a create table statement executes > (Metering_IngestedData_Compressed). The map job finishes successfully and > while moving the table to the hive warehouse the ObjectStore.java > commitTransaction() raises the error: commitTransaction was called but > openTransactionCalls = 0. This probably indicates that there are unbalanced > calls to openTransaction/commitTransaction -- This message was sent by Atlassian JIRA (v6.3.4#6332)