Issue Details (XML | Word | Printable)

Key: AMQ-1438
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: David Jencks
Reporter: Manu T George
Votes: 2
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ActiveMQ

When in XA Transaction Active-MQ integrated with OpenEJB hangs in the isSameRM method of LocalAndXATransaction.

Created: 03/Oct/07 12:29 AM   Updated: 07/Apr/08 03:16 PM
Return to search
Component/s: Connector, Transport
Affects Version/s: 4.1.1
Fix Version/s: 4.1.2

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works AMQ-1438.patch 2007-10-09 11:45 PM Manu T George 2 kB
Environment: All


 Description  « Hide
I was facing a problem with the AMQ 4.1 with the LocalAndXATransaction class's isSameRM waiting indefinitely. The wait is because waitForBrokerInfo calls brokerInfoReceived.await()
where brokerInfoReceived is a countdown latch. Once this is waiting it
never gets resumed.

To trigger it the method onCommand(final Object o) has to be called on
org.apache.activemq.ActiveMQConnection.



 All   Comments   Work Log   Change History   Subversion Commits   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Create crucible review for all 3 changesets in
640340 by  David Jencks (2 files)
24/Mar/08 12:59 AM (19 months, 29 days ago)
AMQ-1438 Force the vm transport to finish configuring itself when its constructed so brokerInfo is immediately available so XAResource.isSameRM() can work properly. Modified patch to make it more thread-safe. Original patch from Manu T George
branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransportFactory.java 640340 history download (+1 -2) diffs
branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransportServer.java 640340 history download (+7 -1) diffs

640622 by  David Jencks (1 file)
24/Mar/08 03:40 PM (19 months, 29 days ago)
647882 by  Hiram Chirino (1 file)
14/Apr/08 09:24 AM (19 months, 8 days ago)
Added test case to trunk showing that AMQ-1438 is no longer an issue on the trunk.

trunk/activemq-core/src/test/java/org/apache/activemq/ActiveMQXAConnectionFactoryTest.java 647882 history download (+21 -0) diffs