summeriiii opened a new pull request, #23502:
URL: https://github.com/apache/pulsar/pull/23502

   Fixes https://github.com/apache/pulsar/issues/23501
   
   ### Motivation
   When seek to the current time `reader.seek(System.currentTimeMillis());`,  
`reader.hasMessageAvailable()` should return false cause there has no message 
to read, but right now it returns true.
                                         
   ### Modifications
   - when hasSoughtByTimestamp, we only need to check  result < 0
   ```java 
   else if (hasSoughtByTimestamp) {
         completehasMessageAvailableWithValue(booleanFuture, result < 0);
   }
   ```
    
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   
   ### Matching PR in forked repository
   
   PR in forked repository: <!-- ENTER URL HERE -->
   


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