Atomikos Forum

Sporadic blocked transaction after entering state COMMITTING

Hi,
We are using Atomikos (community edition) JTA support with spring as part of our test suite, and we have run into some issues.

I am not sure to what level of description I should get into so i'll start with posting 2 log files (one for when the problem reproduced and one for a normal execution)

The following links contains logs for both a failed execution and a normal execution.
https://gist.github.com/3932268

It is worth noting that I have increased the atomikos icatch logging levels to FINEST

you can see in failed.log in line 115-117:
2012-10-21 22:41:51,798  FINE [com.atomikos.icatch.imp.CoordinatorImp] - Coordinator 192.168.9.18.tm0000100001 entering state: COMMITTING
2012-10-21 22:42:01,912  WARNING [com.atomikos.icatch.imp.ActiveStateHandler] - Timeout/setRollbackOnly of ACTIVE coordinator !
2012-10-21 22:42:12,958  INFO [com.atomikos.datasource.xa.XAResourceTransaction] - XAResource.end ( 3139322E3136382E392E31382E746D30303030313030303031:3139322E3136382E392E31382E746D31 , XAResource.TMSUCCESS ) on resource com.j_spaces.core.client.XAResourceImpl@6b1af represented by XAResource instance com.j_spaces.core.client.XAResourceImpl@6b1af7bb

You can see that only after about 20 seconds (line 117) the end action is actually delegated to the XAResource.
(After which, test fails due to transaction timeout.)

On the other hand, most of the time (~97%), no blocking occurs and as you can see in
passed.log in lines 232-233 (for the same test on a different execution):
2012-10-21 23:28:21,259  FINE [com.atomikos.icatch.imp.CoordinatorImp] - Coordinator 172.16.10.2.tm0000100002 entering state: COMMITTING
2012-10-21 23:28:21,263  INFO [com.atomikos.datasource.xa.XAResourceTransaction] - XAResource.end ( 3137322E31362E31302E322E746D30303030313030303032:3137322E31362E31302E322E746D31 , XAResource.TMSUCCESS ) on resource com.j_spaces.core.client.XAResourceImpl@5b809 represented by XAResource instance com.j_spaces.core.client.XAResourceImpl@5b8099a

Here everything is running smoothly.

I will be more than happy to supply further details if there is need.

Thanks in advance,
Dan Kilman.
Dan Kilman Send private email
Monday, October 22, 2012
 
 
Hi,

Try disabling threaded commit?

HTH
Guy Pardon Send private email
Monday, November 05, 2012
 
 
Thanks for the reply.

Are you referring to this system property:
"com.atomikos.icatch.threaded_2pc"

according to the documentation the default value since 3.7 is false and we are using 3.8.0

Thanks again.
Dan Kilman Send private email
Monday, November 05, 2012
 
 
Hello Dan,

Did you manage to find the resolution to your issue. I'm running into exactly the same problem with my tests. I'm not setting com.atomikos.icatch.threaded_2pc manually but I can see that it is false (default) from the log output.
Shahzad Umar Send private email
Thursday, December 20, 2012
 
 
Hello Shahzad,
Unfortunately I did not resolve this issue.
Dan Kilman Send private email
Thursday, December 20, 2012
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics