Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6079

Some python AlternateExchangeTests fail against Java broker (and leave behind an exchange that cannot be deleted)

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.31
    • 0.30
    • Broker-J
    • None

    Description

      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.*"

      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
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            kwall Keith Wall
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment