You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/02/01 05:57:06 UTC

[GitHub] [pulsar] maimom1924 edited a comment on issue #9330: Pulsar reader doesn't return correct last message with startMessageIdInclusive()

maimom1924 edited a comment on issue #9330:
URL: https://github.com/apache/pulsar/issues/9330#issuecomment-770381508


   Thank you so much for your help and support. I tried to test with version
   2.5.1 but when there is no message on the topic and I call the
   reader.hasMessageAvailable(),  I got true value. Could you please help
   check on this?
   
   Reader<byte[]> reader = pulsarClient.newReader()
           .topic(config.getStateTopic())
           .startMessageId(MessageId.latest)
           .startMessageIdInclusive()
           .create();
   boolean hasMessage = reader.hasMessageAvailable();
   


----------------------------------------------------------------
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:
users@infra.apache.org