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

Wait until all partitions are ready AND healthy #329

Open
npepinpe opened this issue Aug 16, 2022 · 0 comments
Open

Wait until all partitions are ready AND healthy #329

npepinpe opened this issue Aug 16, 2022 · 0 comments
Labels
hacktoberfest type/feature New user facing features

Comments

@npepinpe
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

Typically, when you start a gateway, you want to wait until some partitions are ready to receive commands. If there are no leaders, then that will fail. Additionally, if the partition is unhealthy, then even though there is a leader, the command is likely to fail.

Describe the solution you'd like

Allow waiting until not only all partitions have leaders, but all partitions are healthy. The health status is provided in the topology response.

Describe alternatives you've considered

Users can send a topology request to poll until all partitions are healthy, but that's cumbersome since it may need to be done all the time in order to avoid flaky tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest type/feature New user facing features
Projects
None yet
Development

No branches or pull requests

1 participant