Skip to content

add context timeout for waitInstanceState call for alertmanager and s… #5581

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

Merged
merged 2 commits into from
Oct 1, 2023

Conversation

wenxu1024
Copy link
Contributor

@wenxu1024 wenxu1024 commented Sep 30, 2023

…tore-gateway

What this PR does:

Store-gateway can get stuck in JOINING and waiting for ACTIVE forever, because we don't have timeout for the waitInstanceState call.

Similar to what compactor does it, https://github.com/cortexproject/cortex/blob/master/pkg/compactor/compactor.go#L551
We need to add context timeout for store-gateway and alertmanager

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

…tore-gateway

Signed-off-by: Wen Xu <wenxuamz@amazon.com>
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

The change looks good to me. Let's update changelog to document the new flags and behavior changes.

Signed-off-by: Wen Xu <wenxuamz@amazon.com>
@yeya24 yeya24 merged commit dc3807c into cortexproject:master Oct 1, 2023
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.

2 participants