-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Do not add indices to not empty alias #1408
Do not add indices to not empty alias #1408
Conversation
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
plugin/storage/es/esRollover.py
Outdated
@@ -132,6 +134,18 @@ def create_aliases(client, alias_name, archive_index_name): | |||
alias.do_action() | |||
|
|||
|
|||
def alias_is_not_empty(client, alias_name): |
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.
Shouldn't this be called alias_is_empty
?
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.
yes, apart from that is it OK?
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.
Yes LGTM.
@pavolloffay One question - just to confirm - the alias name is based on the jaeger instance? So even if the user is using a shared ES cluster, it will only be checking for alias's related to its own jaeger instance? |
For shared instance one has to use prefixes |
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.
Once @objectiser's comments are addressed, LGTM
@pavolloffay Ok thanks - that is fine. |
Codecov Report
@@ Coverage Diff @@
## master #1408 +/- ##
========================================
Coverage ? 100%
========================================
Files ? 164
Lines ? 7502
Branches ? 0
========================================
Hits ? 7502
Misses ? 0
Partials ? 0 Continue to review full report at Codecov.
|
xdock failed, but it's not related to this PR |
Related to #1407
If the init was run after rollover action it would add indices to read and more importantly write alias. The write alias can contain only one index.
Signed-off-by: Pavol Loffay ploffay@redhat.com