PubSub example has a minor error in the closing logic
-----------------------------------------------------
Key: QPID-863
URL: https://issues.apache.org/jira/browse/QPID-863
Project: Qpid
Issue Type: Bug
Components: Java Tests
Affects Versions: M3
Reporter: Rajith Attapattu
Assignee: Rajith Attapattu
Priority: Minor
Fix For: M3
The Listener class has the following check - "while (_finished < 3 &&
!_failed)"
However there are 4 topics and this loop condition causes the Listener to close
after receiving 3 "termination messages" instead of 4.
Due to the volume of messages this is mostly unnoticable when run manually.
But this causes an intermittent failure when run with the verify scripts as due
to a race condtion sometimes all messages from all 4 topics are received before
close.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.