-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[bug][storage] Fixed the ES-Rollover Idempotency #6638
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6638 +/- ##
==========================================
- Coverage 95.99% 95.99% -0.01%
==========================================
Files 363 363
Lines 20568 20589 +21
==========================================
+ Hits 19745 19764 +19
- Misses 628 630 +2
Partials 195 195
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@yurishkuro I think, even this approach can lead to the error described in the issue. An index might not exist but still pointed by an alias. Should we ignore that error in init (as that means rollover has taken place already)? I intially thought that index existence could fix this but I may be wrong. So I want to take your views over ignoring this error in init. |
@mahadzaryab1 Can you please review this PR and solve this doubt #6638 (comment) ? |
Signed-off-by: Manik2708 <[email protected]>
17fb942
to
96297dd
Compare
Signed-off-by: Manik2708 <[email protected]>
Signed-off-by: Manik2708 <[email protected]>
Fixing e2e tests |
This reverts commit aab70e3. Signed-off-by: Manik2708 <[email protected]>
Signed-off-by: Manik2708 <[email protected]>
Which problem is this PR solving?
Fixes: #6203
Description of the changes
es-rollover
checks for index existence through errors, it is mainly expecting the error:But it can lead to inconsistent results as found in the issue, where init was failing due to the error:
Here if we see carefully the error is coming due to existence of index but the reason is different.
es-rollover
is ready only forresource_already_exists_exception
but there are other errors also which can be generated due to this (like the above).The current way of marshalling error is unsafe, the safe way is: Check if index exists -> Create if not exists. This way the certained error (
resource_already_exists
is fixed) and the unavoidable error likeindex_name_exception
is ignored.How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test