-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Fix multi-node parsing in voting config exclusions REST API #41588
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
Fix multi-node parsing in voting config exclusions REST API #41588
Conversation
|
Pinging @elastic/es-distributed |
|
@barkbay I added the 7.1.0 label on the assumption that you intend to backport this. If you end up not backporting for some reason, please remove that label. |
ywelsch
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.
Good catch, and thank you for the PR. Can you also add the following test to Zen2RestApiIT?
public void testRemoveTwoNodesAtOnce() throws Exception {
internalCluster().setBootstrapMasterNodeIndex(2);
List<String> nodes = internalCluster().startNodes(3);
ensureStableCluster(3);
RestClient restClient = getRestClient();
Response response = restClient.performRequest(new Request("POST", "/_cluster/voting_config_exclusions/" +
nodes.get(2) + "," + nodes.get(0)));
assertThat(response.getStatusLine().getStatusCode(), is(200));
assertThat(response.getEntity().getContentLength(), is(0L));
internalCluster().stopRandomNode(InternalTestCluster.nameFilter(nodes.get(0)));
internalCluster().stopRandomNode(InternalTestCluster.nameFilter(nodes.get(2)));
ensureStableCluster(1);
}
...ain/java/org/elasticsearch/rest/action/admin/cluster/RestAddVotingConfigExclusionAction.java
Outdated
Show resolved
Hide resolved
...ain/java/org/elasticsearch/rest/action/admin/cluster/RestAddVotingConfigExclusionAction.java
Outdated
Show resolved
Hide resolved
|
@elasticmachine run elasticsearch-ci/packaging-sample |
ywelsch
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. The packaging test failures are unrelated to this PR.
Fixes an issue where multiple nodes where not properly parsed in the voting config exclusions REST API. Closes #41587
Fixes an issue where multiple nodes where not properly parsed in the voting config exclusions REST API. Closes #41587
…ble-map-v1 * elastic/master: Adjust bwc version (elastic#41099) Fix multi-node parsing in voting config exclusions REST API (elastic#41588) Add missing skip: arbitrary_key (elastic#41492) [ML] cleanup + adding description field to transforms (elastic#41554)
…41588) Fixes an issue where multiple nodes where not properly parsed in the voting config exclusions REST API. Closes elastic#41587
…41588) Fixes an issue where multiple nodes where not properly parsed in the voting config exclusions REST API. Closes elastic#41587
Fix #41587
This PR split the
node_nameparameter before it is processed byresolveNodes