codelipenghui opened a new pull request #8755:
URL: https://github.com/apache/pulsar/pull/8755


   Fixes #8721
   
   ### Motivation
   Whenever you create a new Reader with startMessageId set to latest and 
startMessageIdInclusive, hasMessageAvailable will be always true even if the 
topic is freshly created without any messages inside. If you remove message 
inclusiveness, then the issue is not appearing.
   
   ### Modifications
   If the returned entryId is illegal, it means there is no message
   
   ### Verifying this change
   ReaderTest#testReaderHasMessageAvailable
   
   (cherry picked from commit 4d8974d8581af53b386dd1d58edca42250e377fe)
   


----------------------------------------------------------------
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.

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


Reply via email to