Demogorgon314 opened a new pull request #13634:
URL: https://github.com/apache/pulsar/pull/13634
Fixes #13605
### Motivation
Currently, the multiTopicReader `hasMessageAvailable` might get the wrong
result, we must check `numMessagesInQueue() > 0` again after finish all
consumer `hasMessageAvaliableAsync` future, bacause some message might already
in `MultiTopicsConsumerImpl#incomingMessages`.
### Modifications
* Fix the wrong multi-topic has message available behavior.
* Use `reader.readNextAsync()` instead of block method `reader.readNext()`.
* Reduce the units test running time by changing `MultiTopicsReaderTest` to
use `@BeforeClass`, `@AfterClass`.
### Documentation
Need to update docs?
- [x] `no-need-doc`
This is a bug fix, no need doc.
--
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]