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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • Metastore
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: