Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client: implement API to get the front and back of logs in a topic #232

Open
ijsong opened this issue Nov 16, 2022 · 0 comments
Open

client: implement API to get the front and back of logs in a topic #232

ijsong opened this issue Nov 16, 2022 · 0 comments

Comments

@ijsong
Copy link
Member

ijsong commented Nov 16, 2022

Sometimes we want to know the front and back of logs in a topic without fetching anything. For example, clients can subscribe to logs starting from either the first log entry sequence number or the last log entry sequence number.

Possible limitations of this API

  • Stale information: Since the end of logs is growing continuously, the back can be less than the recent one. The Trim API can also remove the front of logs.
  • Temporarily unavailable: This API cannot determine the front and back of the topic even if at least one of the log streams in a topic cannot return its low watermark and high watermark correctly. This situation hardly occurs since, to do that, all replicas in a log stream either should not be accessed or should not know their last committed log.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant