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

Decide startup readiness based on the highest record offset #483

Merged

Conversation

jjaakola-aiven
Copy link
Contributor

@jjaakola-aiven jjaakola-aiven commented Nov 1, 2022

About this change - What it does

Karapace relied on poll to return empty topic-messages dictionary and set the state to ready. This PR changes the logic to follow the highest known offset for readiness. When highest offset is catched, state is set ready.

Beginning offset is also tracked in startup. This is to handle case where compaction or purging has removed offset 0.

@jjaakola-aiven jjaakola-aiven requested review from a team as code owners November 1, 2022 12:24
@jjaakola-aiven jjaakola-aiven force-pushed the jjaakola-aiven-use-highest-offset-in-readiness-check branch 5 times, most recently from 79e9e73 to 254c2bc Compare November 3, 2022 12:59
Karapace relied on poll to return empty topic-messages dictionary.
This change will mark state to be ready when the highest offset
is catched up.
@jjaakola-aiven jjaakola-aiven force-pushed the jjaakola-aiven-use-highest-offset-in-readiness-check branch from 254c2bc to e9902ce Compare November 3, 2022 13:42
@tvainika tvainika merged commit 7e39136 into main Nov 4, 2022
@tvainika tvainika deleted the jjaakola-aiven-use-highest-offset-in-readiness-check branch November 4, 2022 08:11
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

Successfully merging this pull request may close these issues.

2 participants