You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Gary Tully (Created) (JIRA)" <ji...@apache.org> on 2011/11/02 18:05:32 UTC
[jira] [Created] (AMQ-3576) ProducerBrokerExchange last producer
sequenceId initialization needs runtime updates to deal with possible
duplicate resends
ProducerBrokerExchange last producer sequenceId initialization needs runtime updates to deal with possible duplicate resends
----------------------------------------------------------------------------------------------------------------------------
Key: AMQ-3576
URL: https://issues.apache.org/jira/browse/AMQ-3576
Project: ActiveMQ
Issue Type: Bug
Components: Broker
Affects Versions: 5.5.1
Reporter: Gary Tully
Fix For: 5.6.0
Under load, a buffered pending send can be replayed along with a failover replay (writeTimeFilter initiated) which can miss the audit b/c it won't have knowledge of the original send.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AMQ-3576) ProducerBrokerExchange last producer
sequenceId initialization needs runtime updates to deal with possible
duplicate resends
Posted by "Gary Tully (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13142549#comment-13142549 ]
Gary Tully commented on AMQ-3576:
---------------------------------
Solution is to update the producerbrokerexchange sequence on each successful send so that it is aware of duplicates at any point in the message stream.
> ProducerBrokerExchange last producer sequenceId initialization needs runtime updates to deal with possible duplicate resends
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQ-3576
> URL: https://issues.apache.org/jira/browse/AMQ-3576
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.5.1
> Environment: failover:(tcp://host:port?soWriteTimeout=500)?jms.useAsyncSend=true&trackMessages=true
> Reporter: Gary Tully
> Fix For: 5.6.0
>
>
> Under load, a buffered pending send can be replayed along with a failover replay (writeTimeFilter initiated) which can miss the audit b/c it won't have knowledge of the original send.
> The dispatch decision is based on the current stored state at the time of reconnect with the expectation that the next message will not be duplicated. It seems under some load and tcp buffering conditions this is possible to get duplicate sends of new messages.
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (AMQ-3576) ProducerBrokerExchange last producer
sequenceId initialization needs runtime updates to deal with possible
duplicate resends
Posted by "Gary Tully (Reopened) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Tully reopened AMQ-3576:
-----------------------------
The default true for auditNetworkProducers needs more consideration. networkConnector audit is problematic for composite destinations and virtual topics and when conduit=false b/c the source broker generates the duplicates, independent of a producer.
When none of the above features are enabled, a vanilla network, the audit is valuable to catch the case where a reply is lost to a successful send.
> ProducerBrokerExchange last producer sequenceId initialization needs runtime updates to deal with possible duplicate resends
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQ-3576
> URL: https://issues.apache.org/jira/browse/AMQ-3576
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.5.1
> Environment: failover:(tcp://host:port?soWriteTimeout=500)?jms.useAsyncSend=true&trackMessages=true
> Reporter: Gary Tully
> Assignee: Gary Tully
> Fix For: 5.6.0
>
>
> Under load, a buffered pending send can be replayed along with a failover replay (writeTimeFilter initiated) which can miss the audit b/c it won't have knowledge of the original send.
> The dispatch decision is based on the current stored state at the time of reconnect with the expectation that the next message will not be duplicated. It seems under some load and tcp buffering conditions this is possible to get duplicate sends of new messages.
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (AMQ-3576) ProducerBrokerExchange last producer
sequenceId initialization needs runtime updates to deal with possible
duplicate resends
Posted by "Gary Tully (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Tully resolved AMQ-3576.
-----------------------------
Resolution: Fixed
http://svn.apache.org/viewvc?rev=1205930&view=rev
default value for auditNetworkProducers=false such that networks with virtual topics and/or composite destinations do not regress.
Relevant test:
{code}mvn test -Dtest=SimpleNetworkTest,BrowseOverNetworkTest,TwoBrokerNetworkConnectorWildcardStaticallyIncludedDestinationTest,TwoBrokerVirtualDestDinamicallyIncludedDestTest,TwoBrokerQueueClientsReconnectTest{code}
> ProducerBrokerExchange last producer sequenceId initialization needs runtime updates to deal with possible duplicate resends
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQ-3576
> URL: https://issues.apache.org/jira/browse/AMQ-3576
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.5.1
> Environment: failover:(tcp://host:port?soWriteTimeout=500)?jms.useAsyncSend=true&trackMessages=true
> Reporter: Gary Tully
> Assignee: Gary Tully
> Fix For: 5.6.0
>
>
> Under load, a buffered pending send can be replayed along with a failover replay (writeTimeFilter initiated) which can miss the audit b/c it won't have knowledge of the original send.
> The dispatch decision is based on the current stored state at the time of reconnect with the expectation that the next message will not be duplicated. It seems under some load and tcp buffering conditions this is possible to get duplicate sends of new messages.
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (AMQ-3576) ProducerBrokerExchange last producer
sequenceId initialization needs runtime updates to deal with possible
duplicate resends
Posted by "Gary Tully (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Tully resolved AMQ-3576.
-----------------------------
Resolution: Fixed
Assignee: Gary Tully
resolution in http://svn.apache.org/viewvc?view=rev&rev=1196804
> ProducerBrokerExchange last producer sequenceId initialization needs runtime updates to deal with possible duplicate resends
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQ-3576
> URL: https://issues.apache.org/jira/browse/AMQ-3576
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.5.1
> Environment: failover:(tcp://host:port?soWriteTimeout=500)?jms.useAsyncSend=true&trackMessages=true
> Reporter: Gary Tully
> Assignee: Gary Tully
> Fix For: 5.6.0
>
>
> Under load, a buffered pending send can be replayed along with a failover replay (writeTimeFilter initiated) which can miss the audit b/c it won't have knowledge of the original send.
> The dispatch decision is based on the current stored state at the time of reconnect with the expectation that the next message will not be duplicated. It seems under some load and tcp buffering conditions this is possible to get duplicate sends of new messages.
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Issue Comment Edited] (AMQ-3576) ProducerBrokerExchange
last producer sequenceId initialization needs runtime updates to deal with
possible duplicate resends
Posted by "Gary Tully (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143283#comment-13143283 ]
Gary Tully edited comment on AMQ-3576 at 11/24/11 5:06 PM:
-----------------------------------------------------------
The network connector case needs some special treatment. In a network connector, a single producer resends messages from multiple original producers so a single audit does not make sense as it will depends on sequence order across producers, which is not probable.
The solution for network connector producers requires querying the persistence adapter before each send. This will place additional synchronization contention on the store so if duplicates are not a problem it can be disabled. There is a new boolean {{auditNetworkProducers}} attribute on a TransportConnector that toggles the behavior. It defaults to -true- false.
Update in: http://svn.apache.org/viewvc?rev=1197203&view=rev
was (Author: gtully):
The network connector case needs some special treatment. In a network connector, a single producer resends messages from multiple original producers so a single audit does not make sense as it will depends on sequence order across producers, which is not probable.
The solution for network connector producers requires querying the persistence adapter before each send. This will place additional synchronization contention on the store so if duplicates are not a problem it can be disabled. There is a new boolean {{auditNetworkProducers}} attribute on a TransportConnector that toggles the behavior. It defaults to true.
Update in: http://svn.apache.org/viewvc?rev=1197203&view=rev
> ProducerBrokerExchange last producer sequenceId initialization needs runtime updates to deal with possible duplicate resends
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQ-3576
> URL: https://issues.apache.org/jira/browse/AMQ-3576
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.5.1
> Environment: failover:(tcp://host:port?soWriteTimeout=500)?jms.useAsyncSend=true&trackMessages=true
> Reporter: Gary Tully
> Assignee: Gary Tully
> Fix For: 5.6.0
>
>
> Under load, a buffered pending send can be replayed along with a failover replay (writeTimeFilter initiated) which can miss the audit b/c it won't have knowledge of the original send.
> The dispatch decision is based on the current stored state at the time of reconnect with the expectation that the next message will not be duplicated. It seems under some load and tcp buffering conditions this is possible to get duplicate sends of new messages.
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (AMQ-3576) ProducerBrokerExchange last producer
sequenceId initialization needs runtime updates to deal with possible
duplicate resends
Posted by "Gary Tully (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Tully updated AMQ-3576:
----------------------------
Description:
Under load, a buffered pending send can be replayed along with a failover replay (writeTimeFilter initiated) which can miss the audit b/c it won't have knowledge of the original send.
The dispatch decision is based on the current stored state at the time of reconnect with the expectation that the next message will not be duplicated. It seems under some load and tcp buffering conditions this is possible to get duplicate sends of new messages.
was:Under load, a buffered pending send can be replayed along with a failover replay (writeTimeFilter initiated) which can miss the audit b/c it won't have knowledge of the original send.
Environment: failover:(tcp://host:port?soWriteTimeout=500)?jms.useAsyncSend=true&trackMessages=true
> ProducerBrokerExchange last producer sequenceId initialization needs runtime updates to deal with possible duplicate resends
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQ-3576
> URL: https://issues.apache.org/jira/browse/AMQ-3576
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.5.1
> Environment: failover:(tcp://host:port?soWriteTimeout=500)?jms.useAsyncSend=true&trackMessages=true
> Reporter: Gary Tully
> Fix For: 5.6.0
>
>
> Under load, a buffered pending send can be replayed along with a failover replay (writeTimeFilter initiated) which can miss the audit b/c it won't have knowledge of the original send.
> The dispatch decision is based on the current stored state at the time of reconnect with the expectation that the next message will not be duplicated. It seems under some load and tcp buffering conditions this is possible to get duplicate sends of new messages.
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AMQ-3576) ProducerBrokerExchange last producer
sequenceId initialization needs runtime updates to deal with possible
duplicate resends
Posted by "Gary Tully (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143283#comment-13143283 ]
Gary Tully commented on AMQ-3576:
---------------------------------
The network connector case needs some special treatment. In a network connector, a single producer resends messages from multiple original producers so a single audit does not make sense as it will depends on sequence order across producers, which is not probable.
The solution for network connector producers requires querying the persistence adapter before each send. This will place additional synchronization contention on the store so if duplicates are not a problem it can be disabled. There is a new boolean {{auditNetworkProducers}} attribute on a TransportConnector that toggles the behavior. It defaults to true.
Update in: http://svn.apache.org/viewvc?rev=1197203&view=rev
> ProducerBrokerExchange last producer sequenceId initialization needs runtime updates to deal with possible duplicate resends
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQ-3576
> URL: https://issues.apache.org/jira/browse/AMQ-3576
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.5.1
> Environment: failover:(tcp://host:port?soWriteTimeout=500)?jms.useAsyncSend=true&trackMessages=true
> Reporter: Gary Tully
> Assignee: Gary Tully
> Fix For: 5.6.0
>
>
> Under load, a buffered pending send can be replayed along with a failover replay (writeTimeFilter initiated) which can miss the audit b/c it won't have knowledge of the original send.
> The dispatch decision is based on the current stored state at the time of reconnect with the expectation that the next message will not be duplicated. It seems under some load and tcp buffering conditions this is possible to get duplicate sends of new messages.
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira