zymap removed a comment on issue #9330:
URL: https://github.com/apache/pulsar/issues/9330#issuecomment-771335429


   @maimom1924 
   
   ```
           PulsarAdmin admin = PulsarAdmin.builder()
               .serviceHttpUrl("http://localhost:8080";)
               .build();
           admin.topics().createNonPartitionedTopic("test");
   
           PulsarClient client = PulsarClient.builder()
               .serviceUrl("pulsar://localhost:6650")
               .build();
   
           Reader reader = client.newReader()
               .topic("test")
               .startMessageId(MessageId.latest)
               .startMessageIdInclusive()
               .create();
   
           // there hasn't message available
           System.out.println(reader.hasMessageAvailable());
   ```
   
   I create a empty topic and it returns false.


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