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

Implement quorum reads and merging for /v1/silences and /v1/silence/id #4146

Merged
merged 1 commit into from
Apr 30, 2021

Conversation

stevesg
Copy link
Contributor

@stevesg stevesg commented Apr 29, 2021

What this PR does:

Reading silence listings via /v1/silences and /v1/silence/{id} will now
read from a quorum of replicas and return a merged response. The
implementation re-uses the logic for /v2, with the exception of handling
the outer body of the response (status/data fields).

Signed-off-by: Steve Simpson [email protected]

Checklist

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

…id}.

Reading silence listings via /v1/silences and /v1/silence/{id} will now
read from a quorum of replicas and return a merged response. The
implementation re-uses the logic for /v2, with the exception of handling
the outer body of the response (status/data fields).

Signed-off-by: Steve Simpson <[email protected]>
@stevesg stevesg marked this pull request as ready for review April 29, 2021 17:27
Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

Good job!

@pracucci pracucci merged commit 23628b8 into cortexproject:master Apr 30, 2021
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