[jboss-dev-forums] [Design of JCA on JBoss] - Re: [JBAS-5095] Race condition between connection.close() an

jesper.pedersen do-not-reply at jboss.com
Wed Aug 27 04:51:31 EDT 2008


I'm currently looking at this trace

  | 10:42:57,675 INFO  [TxConnectionManager] afterCompletion(4) isTrackByTx=true for org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 6efac385[state=NORMAL mc=org.jboss.resource.adapter.jdbc.local.LocalManagedConnection at 40f33dde handles=0 lastUse=1219826577640 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$PoolBySubject at 2162db22 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 6120a64d xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 35f8a538 txSync=null]
  | 
  | 10:42:57,675 INFO  [TxConnectionManager] returnManagedConnection=org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 6efac385[state=NORMAL mc=org.jboss.resource.adapter.jdbc.local.LocalManagedConnection at 40f33dde handles=0 lastUse=1219826577640 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$PoolBySubject at 2162db22 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 6120a64d xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 35f8a538 txSync=null]
  | 
  | 10:42:57,701 INFO  [TxConnectionManager] afterCompletion(3) isTrackByTx=true for org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 6efac385[state=NORMAL mc=org.jboss.resource.adapter.jdbc.local.LocalManagedConnection at 40f33dde handles=1 lastUse=1219826577675 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$PoolBySubject at 2162db22 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 6120a64d xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 35f8a538 txSync=null]
  | 

An afterCompletion() coming in wih status of COMITTED and handles=1 on the same managed connection as a previously afterCompletion() with status of ROLLBACKED and handles = 0.

I've updated the patch in the JIRA issue.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172761#4172761

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172761



More information about the jboss-dev-forums mailing list