activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remo Gloor (JIRA)" <jira+amq...@apache.org>
Subject [jira] [Created] (AMQNET-450) NetTxTransaction replay is incorrect when using Failover Transport
Date Tue, 15 Oct 2013 06:38:44 GMT
Remo Gloor created AMQNET-450:
---------------------------------

             Summary: NetTxTransaction replay is incorrect when using Failover Transport
                 Key: AMQNET-450
                 URL: https://issues.apache.org/jira/browse/AMQNET-450
             Project: ActiveMQ .Net
          Issue Type: Bug
            Reporter: Remo Gloor
            Assignee: Jim Gomes


TransactionState.AddCommand must clone the operation because TransactionInfo command instances
are reused (e.g. in NetTxTransactionContext.Prepare()). 

If they are not cloned then the list will contain the second command twice and the no instance
of the first command because the first command is changed after added to the list by the reassignment
of some values when it is reused. This results in wrong replied messages on reconnects.

Another solution is not to reuse any command instance in the whole code.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message