-
Notifications
You must be signed in to change notification settings - Fork 71
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
BUGFIX: Set up missing alias during node indexing #373
BUGFIX: Set up missing alias during node indexing #373
Conversation
The command `nodeindex:build` does not set up aliases after creating fresh indexes until it considers the indexing complete. This is good, usually, since it allows for indexing "in the background". But if no aliases exist at all, this is going to break. This change fixes that by setting up aliases after creating (fresh) indexes, if no aliases exist. Fixes Flowpack#370
With this change running `nodeindex:indexnode` - without `--postfix` uses existing aliases or creates a new postfix (like `nodeindex:build` does) and sets up aliases - with `--postfix` given will use that postfix and not change aliases, as that's probably intended when passing the postfix manually Fixes Flowpack#370
Not sure about lower branches… I am quite certain I saw this issue on older versions, but don't have a project at hand right now to verify. Also older versions (of Elasticsearch) are EOL anyway. |
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.
Looks good by reading, thanks Karsten
@daniellienert – You mentioned fixed tests on Slack, should that help with this PR? Any hints on what needs to be fixed? |
@kdambekalns rebase it in 7.0 should fix the Tests |
That was easy… now I just needed to remove |
Fixes #370