Closed chaoqin-li1123 closed 1 year ago
I find another issue, when consumer seek on offset that is not a batch message id, it will skip a message, previously this method was using reader instead of consumer, which doesn't have the same issue. I have verified this in the test.
Motivation
Fix the 2 bugs in getUserProvidedMessageId
Modifications
No longer call hasMessageAvailable() method. Wrap initial offset inside UserProvidedMessageId change to use reader instead of consumer.
Verifying this change
(Please pick either of the following options)
[ ] This change is a trivial rework / code cleanup without any test coverage.
[ ] This change is already covered by existing tests, such as:
[ ] This change added tests and can be verified as follows:
Documentation
Check the box below.
Need to update docs?
doc-required
no-need-doc
doc