-
Notifications
You must be signed in to change notification settings - Fork 25.6k
ILM: use node _id attribute when allocating to one node #35061
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
ILM's Shrink Action was using a nodes "_name" attribute to allocate to prepare for the shrink step. Since the name is configurable by a user and may use the same name for multiple nodes on one machine, _id is safer since it is guaranteed to be unique. closes elastic#35043.
|
Pinging @elastic/es-core-infra |
dakrone
left a comment
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.
LGTM
gwbrown
left a comment
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.
Left one question, otherwise LGTM
| String nodeName = "node_" + i; | ||
| int nodePort = 9300 + i; | ||
| Settings nodeSettings = Settings.builder().put(validNodeSettings).put("node.name", nodeName).build(); | ||
| Settings nodeSettings = Settings.builder().put(validNodeSettings).put(Node.NODE_NAME_SETTING.getKey(), nodeName).build(); |
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.
Do we still need to set the node names here if we're not doing anything with them?
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.
no, I felt it was arbitrary since the whole goal is to "fake a node" in unit tests anyways, so I decided to leave it unchanged.
|
test this please |
colings86
left a comment
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.
LGTM
|
test this please |
|
test this please |
2 similar comments
|
test this please |
|
test this please |
|
test this please |
|
OK, so I thought these were related to the flaky tests, but something is broken here. will dig in tomorrow. The change does not seem to work |
|
test this please |
1 similar comment
|
test this please |
ILM's Shrink Action was using a nodes "_name" attribute to allocate to prepare for the shrink step. Since the name is configurable by a user and may use the same name for multiple nodes on one machine, _id is safer since it is guaranteed to be unique. closes #35043.
ILM's Shrink Action was using a nodes "_name" attribute to
allocate to prepare for the shrink step. Since the name is
configurable by a user and may use the same name for
multiple nodes on one machine, _id is safer since it is guaranteed
to be unique.
closes #35043.