milos-matijasevic opened a new pull request #419:
URL: https://github.com/apache/pulsar-client-go/pull/419
### Motivation
Message queues should be cleared after seek requests (`Seek` and
`SeekByTime`). If this is not performed messages that stay in message queues
will be consumed before the sough message.
### Modifications
Cleaning `queueCh` and `messageCh` after successful seek request in
partition_consumer.go.
### Verifying this change
- [ ] Make sure that the change passes the CI checks.
This change is already covered by existing tests, such as
`TestConsumerSeekByTime` and `TestConsumerSeek`.
This change added tests and can be verified as follows:
- Extended `TestConsumerSeekByTime` and `TestConsumerSeek` test for
consuming correctly sought message even if some messages stay in message queues.
### Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (no)
- The public API: (no)
- The schema: (no)
- The default values of configurations: (no)
- The wire protocol: (no)
### Documentation
- Does this pull request introduce a new feature? (no)
----------------------------------------------------------------
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]