Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-2131

An Aborted Metadata Txn Leads to Invalid Active Ops

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • None
    • TX - Transactions
    • None

    Description

      When a metadata transaction is aborted, the number of active operations on the primary index are decremented twice, one time when the job abort log is written and the other when the transaction completes its abortion. This will result in the following exception when the index is accessed the next time:

      Caused by: org.apache.hyracks.api.exceptions.HyracksDataException: The number of active operations cannot be negative!
      	at org.apache.asterix.common.context.PrimaryIndexOperationTracker.completeOperation(PrimaryIndexOperationTracker.java:85) ~[asterix-common-0.9.3-SNAPSHOT.jar:0.9.3-SNAPSHOT]
      	at org.apache.asterix.metadata.MetadataNode.deleteTupleFromIndex(MetadataNode.java:835) ~[asterix-metadata-0.9.3-SNAPSHOT.jar:0.9.3-SNAPSHOT]
      	at org.apache.asterix.metadata.MetadataNode.dropNodegroup(MetadataNode.java:734) ~[asterix-metadata-0.9.3-SNAPSHOT.jar:0.9.3-SNAPSHOT]
      

      Attachments

        Activity

          People

            mhubail Murtadha Makki Al Hubail
            mhubail Murtadha Makki Al Hubail
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: