Skip to content

Modifying https://github.com/cortexproject/cortex/pull/4422 to retry only for GET Requests #4840

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

Conversation

krishnateja325
Copy link
Contributor

What this PR does:

Checklist

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

@krishnateja325 krishnateja325 force-pushed the unary-call-alert-manager-for-GET-requests branch from 85bee4c to f3c0d0f Compare August 23, 2022 18:57
Copy link
Member

@alanprot alanprot left a comment

Choose a reason for hiding this comment

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

Instead of doing by Verb only i think we should do by Verb and Path (as we do when to decide if is a Unary of Quorum.

@krishnateja325 krishnateja325 force-pushed the unary-call-alert-manager-for-GET-requests branch from f3c0d0f to 8d3ac48 Compare August 23, 2022 23:58
@krishnateja325 krishnateja325 force-pushed the unary-call-alert-manager-for-GET-requests branch 3 times, most recently from d388ff7 to e9319eb Compare September 7, 2022 19:42
@krishnateja325
Copy link
Contributor Author

Instead of doing by Verb only i think we should do by Verb and Path (as we do when to decide if is a Unary of Quorum.

Added a check to retry only when the request is a GET request and isUnaryReadPath

@krishnateja325 krishnateja325 force-pushed the unary-call-alert-manager-for-GET-requests branch 3 times, most recently from aeb4bea to d4198ca Compare September 8, 2022 23:20
@krishnateja325 krishnateja325 marked this pull request as ready for review September 8, 2022 23:34
@krishnateja325 krishnateja325 force-pushed the unary-call-alert-manager-for-GET-requests branch from d4198ca to 1ea27ef Compare September 9, 2022 00:20
… AlertManager UnaryPath GET Requests on next replica if one fail.

Signed-off-by: Krishna Teja Puttagunta <krishtez@amazon.com>
@krishnateja325 krishnateja325 force-pushed the unary-call-alert-manager-for-GET-requests branch from 1ea27ef to 8ea073f Compare September 9, 2022 00:31
Signed-off-by: Krishna Teja Puttagunta <krishnateja325@gmail.com>
@alanprot alanprot merged commit 48bc900 into cortexproject:master Sep 9, 2022
@alanprot alanprot mentioned this pull request Sep 15, 2022
@krishnateja325 krishnateja325 deleted the unary-call-alert-manager-for-GET-requests branch June 6, 2023 20:47
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.

5 participants