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

Gary Tully resolved AMQ-5567.
-----------------------------
    Resolution: Fixed

issue was eager dispatch pushed out by concurrent send. The push to the cursor 
needs to happen on the commit outcome only. Also to avoid replay of messages 
from store on outcome overlap with cache full, the commit assigns a new 
sequenceId which ensures order.

>  JDBC XA - Store COMMIT FAILED:  java.io.IOException: Could not remove 
> prepared transaction state from message add for sequenceId
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-5567
>                 URL: https://issues.apache.org/jira/browse/AMQ-5567
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JDBC, Message Store
>    Affects Versions: 5.10.0, 5.11.0
>            Reporter: Gary Tully
>            Assignee: Gary Tully
>              Labels: XA
>             Fix For: 5.12.0
>
>
> Occasional commit failure. Stack trace of the form{code}
> WARN  | .129:36295@61616 | XATransaction                    | 
> tivemq.transaction.XATransaction   91 | 121 - 
> org.apache.activemq.activemq-osgi  | Store COMMIT FAILED: 
> java.io.IOException: Could not remove prepared transaction state from message 
> add for sequenceId: 1753267
>       at 
> org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter.doCommitAddOp(DefaultJDBCAdapter.java:1049)
>       at 
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.commitAdd(JDBCPersistenceAdapter.java:775)
>       at 
> org.apache.activemq.store.jdbc.JdbcMemoryTransactionStore$1.run(JdbcMemoryTransactionStore.java:108)
>       at 
> org.apache.activemq.store.memory.MemoryTransactionStore$Tx.commit(MemoryTransactionStore.java:101)
>       at 
> org.apache.activemq.store.memory.MemoryTransactionStore.commit(MemoryTransactionStore.java:269)
>       at 
> org.apache.activemq.transaction.XATransaction.storeCommit(XATransaction.java:86)
>       at 
> org.apache.activemq.transaction.XATransaction.commit(XATransaction.java:76)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to