Qpid
  1. Qpid
  2. QPID-4014

System test ConflationQueueTest.testParallelProductionAndConsumption failed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.17
    • Component/s: Java Tests
    • Labels:
      None

      Description

      Unit test ConflationQueueTest.testParallelProductionAndConsumption has failed on Jenkins at least twice:

      This test has previously run successfully.

      On first glance, the test doesn't appear to have any inherent race conditions, therefore it is possible that this represents a genuine problem.

      In this test, two producers each each 400 messages with alternating conflation key values, followed by special "shutdown" messages. A single consumer remembers the latest message for each conflation key value.

      Each producer's last few messages should be:

      • Message 397 (conflation key '1')
      • Message 398 (conflation key '0')
      • Message 399 (conflation key '1')
      • Shutdown message

      The assertion in question checks the last message received for each conflation key value. In this case, the last message with key '1' is message 397, not the expected message 399.

      Examination of the test output (attached) indicates that the consumer received message 399 once (it must have been conflated), and that - surprisingly - it arrived after the two shutdown messages.

        Issue Links

          Activity

            People

            • Assignee:
              Philip Harvey
              Reporter:
              Philip Harvey
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development