[
https://issues.apache.org/jira/browse/QPID-6079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14124925#comment-14124925
]
Keith Wall commented on QPID-6079:
----------------------------------
Commit r16922961 does fix the issue I reported above (AlternateExchangeTests
passing), but I see a new test failure. The following test is failing
repeatedly now. It seem only two messages (the ones that aren't acquired) are
making it to the alternate exchange at the session is closed. This test passes
reliably if I pop your commit off - all five, the three acquired and the two
available, make it to the alt.
slo:python keith$ ./runpythontest
qpid_tests.broker_0_10.new_api.GeneralTests.test_qpid_3481_acquired_to_alt_exchange
qpid_tests.broker_0_10.new_api.GeneralTests.test_qpid_3481_acquired_to_alt_exchange
......................................................................................................................................
start
assertEqual failure: 2L != 5
'All 5 messages should have been routed to the alt_exchange. alt_exchange
has 2'
qpid_tests.broker_0_10.new_api.GeneralTests.test_qpid_3481_acquired_to_alt_exchange
......................................................................................................................................
fail
Error during test: Traceback (most recent call last):
File "./qpid-python-test", line 340, in run
phase()
File
"/Users/keith/src/qpid/qpid/tests/src/py/qpid_tests/broker_0_10/new_api.py",
line 86, in test_qpid_3481_acquired_to_alt_exchange
self.assertEqual(alt_available, 5, "All 5 messages should have been
routed to the alt_exchange. alt_exchange has %d" % alt_available)
File
"/Users/keith/src/qpid/qpid/tests/src/py/qpid_tests/broker_0_10/new_api.py",
line 39, in assertEqual
assert None
AssertionError
Totals: 111 tests, 0 passed, 0 skipped, 110 ignored, 1 failed
> Some python AlternateExchangeTests fail against Java broker (and leave behind
> an exchange that cannot be deleted)
> -----------------------------------------------------------------------------------------------------------------
>
> Key: QPID-6079
> URL: https://issues.apache.org/jira/browse/QPID-6079
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Affects Versions: 0.31
> Reporter: Keith Wall
> Attachments: QPID-6079-2.patch
>
>
> Running the Python 0-10 AlternateExchangeTests test suite against the Java
> Broker (trunk with "secureOnlyMechanisms" : [ ] applied to the auth
> provider), I see the following tests fail.
> What's more, after the tests have completed, I notice an exchange (alt1) has
> been left behind by the tests but attempts to delete it manually from
> Management fail without error.
> The REST output shows that alt1 is not referenced as alternate exchange from
> another exchange or queue.
> There are no errors logged server side during tests or subsequent attempts to
> remove the exchange.
> I cannot reproduce the issue with 0.28.
> ./qpid-python-test -b amqp://guest/guest@localhost:5672
> -I../java/test-profiles/python_tests/Java010PythonExcludes
> -I../java/test-profiles/python_tests/JavaPre010PythonExcludes -m
> qpid_tests.broker_0_10 -m qpid_tests.broker_0_9 -m qpid_tests.broker_0_8 -m
> qmf.console
> "qpid_tests.broker_0_10.alternate_exchange.AlternateExchangeTests.*"
> {noformat}
> qpid_tests.broker_0_10.alternate_exchange.AlternateExchangeTests.test_add_alternate_to_exchange
> ....................................................... fail
> Error during test: Traceback (most recent call last):
> File "./qpid-python-test", line 340, in run
> phase()
> File
> "/Users/keith/src/qpid/qpid/tests/src/py/qpid_tests/broker_0_10/alternate_exchange.py",
> line 176, in test_add_alternate_to_exchange
> session.exchange_delete(exchange="alt1")
> File "/Users/keith/src/qpid/qpid/python/qpid/generator.py", line 25, in
> <lambda>
> method = lambda self, *args, **kwargs: self.invoke(op, args, kwargs)
> File "/Users/keith/src/qpid/qpid/python/qpid/session.py", line 138, in
> invoke
> return self.do_invoke(op, args, kwargs)
> File "/Users/keith/src/qpid/qpid/python/qpid/session.py", line 183, in
> do_invoke
> self.sync(self.timeout)
> File "/Users/keith/src/qpid/qpid/python/qpid/session.py", line 103, in
> sync
> raise SessionException(self.error())
> SessionException: ExecutionException(error_code=530, command_id=serial(1),
> description=u'Exchange in use as an alternate exchange', channel=1,
> id=serial(0))
> qpid_tests.broker_0_10.alternate_exchange.AlternateExchangeTests.test_del_alternate_to_exchange
> ....................................................... fail
> Error during test: Traceback (most recent call last):
> File "./qpid-python-test", line 340, in run
> phase()
> File
> "/Users/keith/src/qpid/qpid/tests/src/py/qpid_tests/broker_0_10/alternate_exchange.py",
> line 190, in test_del_alternate_to_exchange
> session.exchange_delete(exchange="alt1")
> File "/Users/keith/src/qpid/qpid/python/qpid/generator.py", line 25, in
> <lambda>
> method = lambda self, *args, **kwargs: self.invoke(op, args, kwargs)
> File "/Users/keith/src/qpid/qpid/python/qpid/session.py", line 138, in
> invoke
> return self.do_invoke(op, args, kwargs)
> File "/Users/keith/src/qpid/qpid/python/qpid/session.py", line 183, in
> do_invoke
> self.sync(self.timeout)
> File "/Users/keith/src/qpid/qpid/python/qpid/session.py", line 103, in
> sync
> raise SessionException(self.error())
> SessionException: ExecutionException(error_code=530, command_id=serial(4),
> description=u'Exchange in use as an alternate exchange', channel=1,
> id=serial(0))
> qpid_tests.broker_0_10.alternate_exchange.AlternateExchangeTests.test_delete_while_used_by_exchange
> ................................................... pass
> qpid_tests.broker_0_10.alternate_exchange.AlternateExchangeTests.test_delete_while_used_by_queue
> ...................................................... pass
> qpid_tests.broker_0_10.alternate_exchange.AlternateExchangeTests.test_modify_existing_exchange_alternate
> .............................................. fail
> Error during test: Traceback (most recent call last):
> File "./qpid-python-test", line 340, in run
> phase()
> File
> "/Users/keith/src/qpid/qpid/tests/src/py/qpid_tests/broker_0_10/alternate_exchange.py",
> line 156, in test_modify_existing_exchange_alternate
> session.exchange_delete(exchange="alt2")
> File "/Users/keith/src/qpid/qpid/python/qpid/generator.py", line 25, in
> <lambda>
> method = lambda self, *args, **kwargs: self.invoke(op, args, kwargs)
> File "/Users/keith/src/qpid/qpid/python/qpid/session.py", line 138, in
> invoke
> return self.do_invoke(op, args, kwargs)
> File "/Users/keith/src/qpid/qpid/python/qpid/session.py", line 183, in
> do_invoke
> self.sync(self.timeout)
> File "/Users/keith/src/qpid/qpid/python/qpid/session.py", line 103, in
> sync
> raise SessionException(self.error())
> SessionException: ExecutionException(error_code=530, command_id=serial(1),
> description=u'Exchange in use as an alternate exchange', channel=1,
> id=serial(0))
> qpid_tests.broker_0_10.alternate_exchange.AlternateExchangeTests.test_queue_autodelete
> ................................................................ pass
> qpid_tests.broker_0_10.alternate_exchange.AlternateExchangeTests.test_queue_delete
> .................................................................... pass
> qpid_tests.broker_0_10.alternate_exchange.AlternateExchangeTests.test_queue_delete_loop
> ............................................................... pass
> qpid_tests.broker_0_10.alternate_exchange.AlternateExchangeTests.test_queue_delete_no_match
> ........................................................... pass
> qpid_tests.broker_0_10.alternate_exchange.AlternateExchangeTests.test_reject_no_match
> ................................................................. pass
> qpid_tests.broker_0_10.alternate_exchange.AlternateExchangeTests.test_unroutable
> ...................................................................... pass
> Totals: 121 tests, 8 passed, 0 skipped, 110 ignored, 3 failed
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]