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 (JIRA)" <ji...@apache.org> on 2008/10/20 13:13:52 UTC
[jira] Created: (AMQ-1984) Intermittent failure of test
org.apache.activemq.transport.failover.ReconnectTest
Intermittent failure of test org.apache.activemq.transport.failover.ReconnectTest
---------------------------------------------------------------------------------
Key: AMQ-1984
URL: https://issues.apache.org/activemq/browse/AMQ-1984
Project: ActiveMQ
Issue Type: Improvement
Components: Test Cases
Affects Versions: 5.2.0
Environment: linux
Reporter: Gary Tully
Assignee: Gary Tully
Fix For: 5.3.0
{code}
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 54.76 sec <<< FAILURE!
testReconnects(org.apache.activemq.transport.failover.ReconnectTest) Time elapsed: 54.741 sec <<< FAILURE!
junit.framework.AssertionFailedError: Test run 7: Worker 6 never completed an interation.
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at org.apache.activemq.transport.failover.ReconnectTest.testReconnects(ReconnectTest.java:180)
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQ-1984) Intermittent failure of test
org.apache.activemq.transport.failover.ReconnectTest
Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQ-1984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46680#action_46680 ]
Gary Tully commented on AMQ-1984:
---------------------------------
I am making some progress on this. the problem is that the message count of the storeQueuecursos goes negative and it appears empty, so nothing gets dispatched, even when there are messages available in the store. The result is that a consumer hangs waiting for a message. The ReconnectTest simulates a connection error that causes lots of repeated add/removeConsumers for a queue that sometimes gets in this state.
> Intermittent failure of test org.apache.activemq.transport.failover.ReconnectTest
> ---------------------------------------------------------------------------------
>
> Key: AMQ-1984
> URL: https://issues.apache.org/activemq/browse/AMQ-1984
> Project: ActiveMQ
> Issue Type: Improvement
> Components: Test Cases
> Affects Versions: 5.2.0
> Environment: linux
> Reporter: Gary Tully
> Assignee: Gary Tully
> Fix For: 5.3.0
>
>
> {code}
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 54.76 sec <<< FAILURE!
> testReconnects(org.apache.activemq.transport.failover.ReconnectTest) Time elapsed: 54.741 sec <<< FAILURE!
> junit.framework.AssertionFailedError: Test run 7: Worker 6 never completed an interation.
> at junit.framework.Assert.fail(Assert.java:47)
> at junit.framework.Assert.assertTrue(Assert.java:20)
> at org.apache.activemq.transport.failover.ReconnectTest.testReconnects(ReconnectTest.java:180)
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (AMQ-1984) Intermittent failure of test
org.apache.activemq.transport.failover.ReconnectTest
Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQ-1984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Tully resolved AMQ-1984.
-----------------------------
Resolution: Fixed
resolved. r707415.
related and relevant tests:
mvn test -Dtest=ForwardingBridgeTest,MBeanTest,DataFileNotDeletedTest,AMQ1917Test,ReconnectTest
root cause: cursor out of sync with store, messages to the store added during a dispatch resulted in cursor.iterator finding messages that were not tracked by cusror counts. When counts went negative, available messages were not dispatched, hence consumers can hang.
Now negative count is rectified on the next dispatch.
> Intermittent failure of test org.apache.activemq.transport.failover.ReconnectTest
> ---------------------------------------------------------------------------------
>
> Key: AMQ-1984
> URL: https://issues.apache.org/activemq/browse/AMQ-1984
> Project: ActiveMQ
> Issue Type: Improvement
> Components: Test Cases
> Affects Versions: 5.2.0
> Environment: linux
> Reporter: Gary Tully
> Assignee: Gary Tully
> Fix For: 5.3.0
>
>
> {code}
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 54.76 sec <<< FAILURE!
> testReconnects(org.apache.activemq.transport.failover.ReconnectTest) Time elapsed: 54.741 sec <<< FAILURE!
> junit.framework.AssertionFailedError: Test run 7: Worker 6 never completed an interation.
> at junit.framework.Assert.fail(Assert.java:47)
> at junit.framework.Assert.assertTrue(Assert.java:20)
> at org.apache.activemq.transport.failover.ReconnectTest.testReconnects(ReconnectTest.java:180)
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.