diff options
| author | Alan Conway <aconway@apache.org> | 2012-10-19 20:00:55 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2012-10-19 20:00:55 +0000 |
| commit | 35d2059cb073ead5cecee35127e0720b58d1f278 (patch) | |
| tree | ccb2b52c4f5f079759cf5c4dc737d6cad7b42388 /qpid/cpp/src | |
| parent | d0b68563f8af27a447fd7e706c8c98dfb1c213dc (diff) | |
| download | qpid-python-35d2059cb073ead5cecee35127e0720b58d1f278.tar.gz | |
Bug 868360 - QPID-4379: HA does not properly handle expired messages.
The trunk is not affected by this bug, so this commit is just to add the
regression test that proves it.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1400258 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rwxr-xr-x | qpid/cpp/src/tests/ha_tests.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/ha_tests.py b/qpid/cpp/src/tests/ha_tests.py index 2cfc0e9125..047caf6dcb 100755 --- a/qpid/cpp/src/tests/ha_tests.py +++ b/qpid/cpp/src/tests/ha_tests.py @@ -745,6 +745,7 @@ acl deny all all cluster[1].wait_queue("q") # Not timed out yet cluster[1].wait_no_queue("q") # Wait for timeout +<<<<<<< HEAD def test_alt_exchange_dup(self): """QPID-4349: if a queue has an alterante exchange and is deleted the messages appear twice on the alternate, they are rerouted once by the @@ -763,6 +764,20 @@ acl deny all all s.sender("q;{delete:always}").close() cluster[1].assert_browse_backup("altq", messages) +||||||| parent of c584515... Bug 868360 - QPID-4379: HA does not properly handle expired messages. +======= + def test_expired(self): + """Regression test for QPID-4379: HA does not properly handle expired messages""" + # Race between messages expiring and HA replicating consumer. + cluster = HaCluster(self, 2) + s = cluster[0].connect().session().sender("q;{create:always}", capacity=2) + def send_ttl_messages(): + for i in xrange(100): s.send(Message(str(i), ttl=0.001), timeout=1) + send_ttl_messages() + cluster.start() + send_ttl_messages() + +>>>>>>> c584515... Bug 868360 - QPID-4379: HA does not properly handle expired messages. def fairshare(msgs, limit, levels): """ Generator to return prioritised messages in expected order for a given fairshare limit |
