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

Proxy Store should not lock when all clients error. #563

Merged
merged 3 commits into from
Oct 10, 2018
Merged

Proxy Store should not lock when all clients error. #563

merged 3 commits into from
Oct 10, 2018

Conversation

domgreen
Copy link
Contributor

When we are calling many stores we need to ensure that if they all (more than 10) return an error we do not halt the as we cannot add more the the respCh in doing so we are eating into the number of queries we are allowing Thanos.

Changes

respCh should be one more than the number of stores we have ... this is so we can push all error responses to the channel and also the final error if the series has no results.

Verification

Added a test.

@domgreen domgreen added the bug label Oct 10, 2018
@domgreen domgreen self-assigned this Oct 10, 2018
@domgreen domgreen requested review from kdima and bwplotka October 10, 2018 14:29
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Legit! Thanks.

@bwplotka
Copy link
Member

Can we add this item to CHANGELOG.md?

@domgreen
Copy link
Contributor Author

Updated CHANGELOG and added an issue so that it can be referenced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants