[ 
https://issues.apache.org/jira/browse/ASTERIXDB-2131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Murtadha Hubail updated ASTERIXDB-2131:
---------------------------------------
    Component/s: TX - Transactions

> 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
>          Components: TX - Transactions
>            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)

Reply via email to