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

[Java] ProducerFlowControlTest failing due to race condition in test

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.6
    • Fix Version/s: 0.7
    • Component/s: Java Tests
    • Labels:
      None

      Description

      ProducerFlowControlTest occasionally fails with unexpected numbers of messages being sent due to the fact that the test is based on sleeping for an amount of time, and assuming that the flow control will have kicked in by then. this is necessary as sending messages cannot be made synchronous in 0-8.

      To fix, introduce a .sync() method on AMQSession and call this after sends in the test. This will ensure that any necessary flow control will have been enacted before the next client operation is invoked.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            rgodfrey Rob Godfrey
            Reporter:
            rgodfrey Rob Godfrey
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development