jbonofre opened a new pull request, #1741:
URL: https://github.com/apache/activemq/pull/1741

   Replace `receiveNoWait()` with `receive(5000)` in `doTestRecvRecvCommit` and 
`testTwoConsumers` where messages are expected to be present. 
   
   With zero prefetch, `receiveNoWait()` sends a `MessagePull` with 
`timeout=-1` which causes the broker to send `NULL_MESSAGE` immediately if 
dest.iterate() cannot dispatch in time (race with ack processing of the 
previous message). 
   
   Using `receive(timeout)` allows the broker to retry dispatch before timing 
out.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to