Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-8786

ObjectStore.rollbackTransaction() should decrement openTrasactionCalls and not set it to 0

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Metastore
    • Labels:
      None

      Description

      In ObjectStore.java,

       public void rollbackTransaction() {
          if (openTrasactionCalls < 1) {
            debugLog("rolling back transaction: no open transactions: " + openTrasactionCalls);
            return;
          }
          openTrasactionCalls = 0;
      

      I think the above code should be changes to openTrasactionCalls--; instead.

        Attachments

        1. HIVE-8786.1.patch
          0.7 kB
          Hari Sankar Sivarama Subramaniyan

          Issue Links

            Activity

              People

              • Assignee:
                hsubramaniyan Hari Sankar Sivarama Subramaniyan
                Reporter:
                hsubramaniyan Hari Sankar Sivarama Subramaniyan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: