Skip to content

Conversation

@barkbay
Copy link
Contributor

@barkbay barkbay commented Apr 26, 2019

Fix #41587
This PR split the node_name parameter before it is processed by resolveNodes

@not-napoleon not-napoleon added :Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. >bug v7.2.0 v8.0.0 labels Apr 26, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@not-napoleon
Copy link
Member

@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 ywelsch self-requested a review April 26, 2019 17:48
Copy link
Contributor

@ywelsch ywelsch left a 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);
}

@ywelsch ywelsch added the v7.0.2 label Apr 26, 2019
@ywelsch
Copy link
Contributor

ywelsch commented Apr 27, 2019

@elasticmachine run elasticsearch-ci/packaging-sample

Copy link
Contributor

@ywelsch ywelsch left a 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.

@ywelsch ywelsch changed the title voting config exclusions AP: fix node_name param. parsing Fix multi-node parsing in voting config exclusions REST API Apr 27, 2019
@ywelsch ywelsch merged commit 64e1f07 into elastic:master Apr 27, 2019
ywelsch pushed a commit that referenced this pull request Apr 27, 2019
Fixes an issue where multiple nodes where not properly parsed in the voting config exclusions REST API.

Closes #41587
ywelsch pushed a commit that referenced this pull request Apr 27, 2019
Fixes an issue where multiple nodes where not properly parsed in the voting config exclusions REST API.

Closes #41587
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Apr 27, 2019
…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)
@ywelsch ywelsch added v7.0.1 and removed v7.0.2 labels Apr 29, 2019
akhil10x5 pushed a commit to akhil10x5/elasticsearch that referenced this pull request May 2, 2019
…41588)

Fixes an issue where multiple nodes where not properly parsed in the voting config exclusions REST API.

Closes elastic#41587
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
…41588)

Fixes an issue where multiple nodes where not properly parsed in the voting config exclusions REST API.

Closes elastic#41587
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v7.0.1 v7.2.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Voting config exclusions API: node_name is not parsed as a comma-separated list

5 participants