Bug 560027

Summary: Python test failure: qpid.tests.messaging.ReceiverTests.testDoubleClose
Product: Red Hat Enterprise MRG Reporter: Alan Conway <aconway>
Component: python-qpidAssignee: Rafael H. Schloming <rafaels>
Status: CLOSED ERRATA QA Contact: Frantisek Reznicek <freznice>
Severity: urgent Docs Contact:
Priority: urgent    
Version: DevelopmentCC: esammons, freznice, gsim, tross
Target Milestone: 1.3   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alan Conway 2010-01-29 17:24:55 UTC
Description of problem:

The test fails intermittently, it's failed in ptol a couple times:

qpid.tests.messaging.ReceiverTests.testDoubleClose .............................................................................................................................. fail
Error during test:
  Traceback (most recent call last):
    File "/home/remote/aconway/qpid/qpid/dbg/src/tests/python/commands/qpid-python-test", line 307, in run
      phase()
    File "/home/remote/aconway/qpid/qpid/dbg/src/tests/python/qpid/tests/messaging.py", line 565, in testDoubleClose
      self.drain(r1, expected=[m1])
    File "/home/remote/aconway/qpid/qpid/dbg/src/tests/python/qpid/tests/messaging.py", line 88, in drain
      assert expected == contents, "expected %s, got %s" % (expected, contents)
  AssertionError: expected ['testDoubleClose[1, 77dff24b-0615-6640-8ff3-1f889b4596e7]'], got []


Version-Release number of selected component (if applicable):


How reproducible: Easy


Steps to Reproduce:
1. cd src/tests
2. source test_env.sh
3. pkill qpidd; while true; do qpidd -d --auth=no; PYTHON_TESTS=*DoubleClose python_tests || break; pkill qpidd; done
  
Actual results:

Test fails after < 10 iterations.

Expected results:

No failure.

Additional info:

This could be a broker bug but it would be surprising that it had  not turned up before. It seems more likely a python API bug.

Comment 1 Rafael H. Schloming 2010-02-17 14:22:12 UTC
I can't seem to reproduce this on trunk. I'm hoping this is because the root cause is the same as another bug that I fixed recently. Can you confirm that you're no longer able to reproduce this with the latest code on trunk?

Comment 2 Alan Conway 2010-03-05 20:07:49 UTC
Confirmed. No failures in 200 runs.

Comment 3 Rafael H. Schloming 2010-03-05 21:49:49 UTC
Thanks, I'm going to mark this modified then.

Comment 4 Frantisek Reznicek 2010-05-13 09:48:23 UTC
The issue with qpid.tests.messaging.ReceiverTests.testDoubleClose has been fixed, no occurrences of the issue detected over few thousands of runs on RHEL 4.8 / 5.5 i386 / x86_64 on qpid-tree constructed from qpid-cpp-mrg-0.7.935473-1, qpid-tools-0.7.934605-2, python-qpid-0.7.934605-1 source packages.

-> VERIFIED