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

Fix GET /_snapshot/_all/_all if there are no repos #43558

Merged
merged 1 commit into from
Jun 25, 2019

Conversation

andrershov
Copy link
Contributor

When there are no repositories, a request to GET /_snapshot/_all/_all
returns a 504 timeout error.
This happens because try to create GroupedActionListener with the
size of zero, which leads to an exception.
This commit short-circuits if there are no repos and adds a test to
verify the fix.

Closes #43547

@andrershov andrershov added the :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs label Jun 25, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

Copy link
Member

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @andrershov ! LGTM, assuming CI agrees

@andrershov andrershov merged commit 03e8734 into elastic:master Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GET /_snapshot/_all/_all times out when there are no repositories
4 participants