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

[Java] ProducerFlowControlTest failing due to race condition in test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6
    • 0.7
    • Java Tests
    • 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.

      Attachments

        Activity

          People

            rgodfrey Robert Godfrey
            rgodfrey Robert Godfrey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: