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

Only wait for yellow health status on startup #521

Merged
merged 1 commit into from
Dec 23, 2020

Conversation

lonvia
Copy link
Collaborator

@lonvia lonvia commented Dec 23, 2020

The documentation says that the yellow health status is reached, when the primary shard is available and green status only when the replica shards are online. Tests are run with a single shard only, thus they can never reach green state because there is no replica shard configured. Waiting for the green status in fact resulted in a silent timeout of the operation after 30s. This made the API tests annoyingly slow.

Having the primary shard available should be sufficient for most operations. So this commit changes the status operation to only wait for yellow state.

Side note: the status check shouldn't just time out silently but at least omit a warning but that is something for another commit.

The documentation says that the yellow status is reached, when the
primary shard is available and green status only when the replica
shards are online. Tests are run with a single shard only, thus
they can never reach green state because there is no replica shard
configured. Waiting for the green status in fact resulted in a
silent timeout of the operation after 30s. This made the API
tests annoyingly slow.

Having the primary shard available should be sufficient for most
operations. So this commit changes the status operation to only
wait for yellow state.
@lonvia lonvia merged commit 77582a5 into komoot:master Dec 23, 2020
@lonvia lonvia deleted the expect-yellow-state-on-startup branch December 23, 2020 13:49
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.

1 participant