[Improve] Correct the anti-intuitive behavior of seek
when startMessageInclusive()
is configured
#24047
Open
2 tasks done
Labels
type/enhancement
The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Search before asking
Motivation
Given a reader and the following code:
It's intuitive to see values of case 1 and case 2 are the same.
However, if the reader has configured
startMessageIdInclusive
, the results are different:See the full test code:
Solution
The root cause is when #4331 introduced this config, it didn't consider the case when seeking by timestamp.
It's hard to change the existing behavior because many applications might rely on it. We'd better add new client side configs and mark existing
startMessageInclusive
as deprecated.Alternatives
No response
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: