Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
None
-
None
-
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]