Qpid
  1. Qpid
  2. QPID-2340

[Java] ProducerFlowControlTest failing due to race condition in test

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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

        Rob Godfrey created issue -
        Rob Godfrey made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development