-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add retries to ILM client #7120
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
Add retries to ILM client #7120
Conversation
ee9eef8
to
3ccc1ea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses a flaky test by introducing retry logic with exponential backoff in the ILMClient.Exists method. The changes aim to improve resilience against transient network issues.
- Added a test (TestExists_Retries) to verify the retry behavior.
- Implemented exponential backoff retry logic in the ILMClient.Exists method.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
internal/storage/elasticsearch/client/ilm_client.go | Added retry loop with exponential backoff for Exists |
internal/storage/elasticsearch/client/ilm_client_test.go | Introduced a new unit test to validate retry logic |
377cd99
to
0695551
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7120 +/- ##
==========================================
- Coverage 96.20% 96.19% -0.02%
==========================================
Files 362 362
Lines 21853 21868 +15
==========================================
+ Hits 21024 21036 +12
- Misses 620 622 +2
- Partials 209 210 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
97dcaad
to
4046f17
Compare
988991f
to
e996f54
Compare
…efix,_[ROLLOVER=true] (jaegertracing#6838) Signed-off-by: Ilia Yavorov Petrov <ilia.yavorov.petrov@gmail.com> Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
…/cenkalti/backoff/v5 Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
Head branch was pushed to by a user without write access
5bdecc6
to
26b58f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
need to run |
Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
c033f6b
to
dc8374a
Compare
…move_rollover-indices_prefix-rollover-true
Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
3f0a99b
to
d81cad9
Compare
Which problem is this PR solving?
Description of the changes
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test