nicoloboschi opened a new pull request, #17147:
URL: https://github.com/apache/pulsar/pull/17147
### Motivation
Sometimes this test fails with
```
java.lang.AssertionError: Received duplicate message msg num 5 expected
[true] but found [false]
at org.testng.Assert.fail(Assert.java:99)
at org.testng.Assert.failNotEquals(Assert.java:1037)
at org.testng.Assert.assertTrue(Assert.java:45)
at
org.apache.pulsar.client.api.TopicReaderTest.testMultiReaderIsAbleToSeekWithTimeOnMiddleOfTopic(TopicReaderTest.java:1404)
```
This is because while the reader tries to seek to a fixed position, the
dispatcher have already sent messages starting from the Earliest position.
Even if the consumer on the client side empties the incoming messages after
the cursor reset, the messages may already be on the client side and not enqued
yet. I think this is a little defeat of the seek feature
### Modifications
* Test seek() resetting the cursor before the current position (Latest) and
improved the test checks
- [x] `doc-not-needed`
--
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]