summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/cluster_tests.py
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2011-04-29 15:21:20 +0000
committerAlan Conway <aconway@apache.org>2011-04-29 15:21:20 +0000
commitdb64c6662a3a1a54abb31a6368138ca0a3752f8c (patch)
tree8eafd27dc4f8d41caffaa6515fd8e7ef0c2f432f /qpid/cpp/src/tests/cluster_tests.py
parentb513226cc2f834b17a88525fafa2290542b925bb (diff)
downloadqpid-python-db64c6662a3a1a54abb31a6368138ca0a3752f8c.tar.gz
QPID-3235: clustered qpidd broker fails ocassionly the cluster_tests.ShortTests.test_route_update
Inconsistent stats changes on a Link were causing cluster inconsistency. Fix is to disable those stats changes in a cluster. Updated cluster_tests.py to reliably generate the error every time without the fix. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1097838 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/cluster_tests.py')
-rwxr-xr-xqpid/cpp/src/tests/cluster_tests.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/cluster_tests.py b/qpid/cpp/src/tests/cluster_tests.py
index 26298393ff..727934ae26 100755
--- a/qpid/cpp/src/tests/cluster_tests.py
+++ b/qpid/cpp/src/tests/cluster_tests.py
@@ -282,6 +282,13 @@ acl allow all all
qpid_tool.wait()
scanner.join()
assert scanner.found
+ # Regression test for https://issues.apache.org/jira/browse/QPID-3235
+ # Inconsistent stats when changing elder.
+
+ # Force a change of elder
+ cluster0.start()
+ cluster0[0].kill()
+ time.sleep(2) # Allow a management interval to pass.
# Verify logs are consistent
cluster_test_logs.verify_logs()
@@ -602,7 +609,6 @@ acl allow all all
send0.send("bar") # Should fail, exchange is deleted.
self.fail("Expected not-found exception")
except qpid.messaging.NotFound: pass
- # FIXME aconway 2011-04-19: s0 is broken, new session
self.assert_browse(cluster[0].connect().session(), "q", ["foo"])
def test_deleted_exchange_inconsistent(self):