Bug 986362
Summary: | Inflow XA transaction recovery fails due to ironjacamar calling unsupported method in HornetQResourceAdapter | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Martin Svehla <msvehla> |
Component: | HornetQ | Assignee: | Clebert Suconic <csuconic> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.1.1 | CC: | csuconic, lcosti, mnovak, msvehla |
Target Milestone: | ER7 | Keywords: | Reopened |
Target Release: | EAP 6.1.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
There was an issue in JBoss EAP 6 where during the recovery of HornetQ transactions, the transaction manager would output error messages to the log, although the transactions would still be finished correctly.
This would occur because the JCA Adapter (IronJacamar) will request the MDB Resource Adpater for inflow XIDs. HornetQ self-registers itself on the transaction manager, and as a result HornetQ would throw an exception what would confuse IronJacamar's recovery mechanism.
As a result, ignorable warnings on the transaction manager were produced, for example:
----
ERROR [org.jboss.jca.core.tx.jbossts.XAResourceRecoveryInflowImpl] (Periodic Recovery) IJ000902: Error
during inflow crash recovery for 'org.hornetq.ra.HornetQResourceAdapter'
(org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@4f02d3d2
destination=jms/queue/InQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=null
maxSession=15)): javax.resource.ResourceException: Unsupported
at org.hornetq.ra.HornetQResourceAdapter.getXAResources(HornetQResourceAdapter.java:204)
----
This issue was fixed by not returning an empty Array to IronJacamar instead of throwing an `Unsupported` exception. As a result, there will no longer be ignorable warnings and transactions will still finish through the transaction manager's recovery.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-09-16 20:30:26 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: |
Description
Martin Svehla
2013-07-19 14:31:16 UTC
It won't lose messages... HornetQ registers itself on the Transaction Manager, hence that method is not supported. We have changed it to return null on master... ONly thing that will be changed on this is.. you won't have an exception any longer.. but all the semantics are the same. You're right, I didn't manage to confirm any example where messages would be lost. Please make sure the change is propagated into 2.3.x branch so it's in next EAP release later this year. Since the log message is now reported as ERROR level, it can be confusing for the end user (it was for me). Thanks Moving to assigned. Clebert could you move to modified since it's in HQ master. This issue should be documented in known issues. Thanks, Mirek this has been applied to 2.3.x as well, it should be marked as fixed on the current ER (HQ 2.3.3, 2.3.4 and 2.3.5 will include this fix) BZ is in incorrect state. Fix for this issue is present in EAP 6.1.1.ER7(HQ 2.3.5.Final) Verified in EAP 6.1.1.ER7. |