You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Murtadha Hubail (JIRA)" <ji...@apache.org> on 2017/10/13 15:32:00 UTC

[jira] [Created] (ASTERIXDB-2131) An Aborted Metadata Txn Leads to Invalid Active Ops

Murtadha Hubail created ASTERIXDB-2131:
------------------------------------------

             Summary: An Aborted Metadata Txn Leads to Invalid Active Ops
                 Key: ASTERIXDB-2131
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2131
             Project: Apache AsterixDB
          Issue Type: Bug
            Reporter: Murtadha Hubail
            Assignee: Murtadha Hubail
            Priority: Critical


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:

{code:java}
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]
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)