dmonopoly opened a new issue, #23917:
URL: https://github.com/apache/pulsar/issues/23917

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Read release policy
   
   - [x] I understand that unsupported versions don't get bug fixes. I will 
attempt to reproduce the issue on a supported version of Pulsar client and 
Pulsar broker.
   
   
   ### Version
   
   Java 11, Pulsar 3
   
   ### Minimal reproduce step
   
   If you create a reader like so
   ```
   var partitionReader: Reader<ByteArray>? =
                   client
                       .newReader(BYTES)
                       .startMessageId(MessageId.earliest)
                       .topic(topic)
                       .create()
   ```
   then call seek to some timestamp that is certainly within a valid range of 
time where there are messages after
   ```
   pulsarReader.seek(timestamp)
   ```
   
   readNext() will hang.
   ```
   if (!pulsarReader.hasMessageAvailable()) {
               logger.info("No messages from this starting timestamp")
               return null
   }        
   var nextMsg = pulsarReader.readNext()
   ```
   
   
   ### What did you expect to see?
   
   readNext() returns the next message, or hasMessageAvailable() returns false
   
   ### What did you see instead?
   
   hangs
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


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

Reply via email to