Bug 998449
Summary: | Incorrect return code on second rollback call from TM running with JTS for crash recovery | ||||||
---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Ondrej Chaloupka <ochaloup> | ||||
Component: | JMS | Assignee: | Gary Tully <gtully> | ||||
Status: | CLOSED EOL | QA Contact: | Miroslav Novak <mnovak> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.1.0 | ||||||
Target Milestone: | --- | ||||||
Target Release: | EAP 6.4.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2019-08-19 12:46:50 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Ondrej Chaloupka
2013-08-19 10:52:23 UTC
fix on apache trunk - http://svn.apache.org/r1515783 the problem relates to sparse unmarshalling of exceptions in openwire, so the broker assigned xa_error is not visible to the client and uninitialised to 0 which is invalid xa_ok. The fix replaces xa_ok with xa_rmerr (a generic failure notification) this fix will make 5.9 and A-MQ 6.1 Hi Gary, I've took the RAR from https://repository.apache.org/content/repositories/snapshots/org/apache/activemq/activemq-rar/5.9-SNAPSHOT/activemq-rar-5.9-20130905.131830-99.rar and your fix seems to be inside. But the error exception is still visible because of the incorrect return code. ARJUNA024023: XAResourceRecord.rollback caused an XA error: XAException.XAER_RMERR from resource XAResourceWrapperImpl@22f01dd3[xaResource=org.apache.activemq.ra.ActiveMQManagedConnection$1@4c848346 pad=false overrideRmValue=null productName=ActiveMQ productVersion=5.9-SNAPSHOT jndiName=java:/JmsXA] in transaction < 131072, 29, 36, 0000000000-1-112700184-20-5322825675-680003749, 2929292929292929292928281562929301139-245111185104-39292929667829292929292929 >: javax.transaction.xa.XAException: Transaction 'XID:[131072,globalId=0000000000ffffffffffffffff7f00154ffffffecffffffcb1652384bffffffbc0002531,branchId=0000000000ffffffffffffffff7f00154ffffffecffffffcb1652384bffffffbc0002a00000000]' has not been started. What I understand there should be returned return code XA_NOTA to be consistent with Narayana behavior. Hi Ondra, can you check this one whether it's still a problem. Thanks, Mirek Created attachment 915999 [details]
JMSCrashRecoveryRemoteTestCase#prepareHalt jts server.log (in html format)
Hi Mirek,
I've rerun the test and pass through the test server log and the issue is still valid. There is returned incorrect return code (XAException.XAER_RMERR instead of XAException.XAER_NOTA) when JTS periodic recovery calls rollback on the same XID for second time.
Adding the server log with Narayana TRACE as attachment.
Ondra
Thanks Ondra! I'm setting jboss-eap-6.4 ? flag and release as this should get fix to EAP 6.4 release. Creating jira ENTMQ-717 for JBoss A-MQ dev to notice this issue. |