You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/src/main/java/org/elasticsearch/action/admin/cluster/configuration/AddVotingConfigExclusionsRequest.java
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -54,18 +54,20 @@ public class AddVotingConfigExclusionsRequest extends MasterNodeRequest<AddVotin
54
54
privatefinalTimeValuetimeout;
55
55
56
56
/**
57
-
* Construct a request to add voting config exclusions for master-eligible nodes matching the given descriptions, and wait for a
57
+
* Construct a request to add voting config exclusions for master-eligible nodes matching the given node names, and wait for a
58
58
* default 30 seconds for these exclusions to take effect, removing the nodes from the voting configuration.
59
-
* @param nodeDescriptions Descriptions of the nodes to add - see {@link DiscoveryNodes#resolveNodes(String...)}
59
+
* @param nodeNames Names of the nodes to add - see {@link AddVotingConfigExclusionsRequest#resolveVotingConfigExclusions(ClusterState)}
* Construct a request to add voting config exclusions for master-eligible nodes matching the given descriptions, and wait for these
67
67
* nodes to be removed from the voting configuration.
68
68
* @param nodeDescriptions Descriptions of the nodes whose exclusions to add - see {@link DiscoveryNodes#resolveNodes(String...)}.
69
+
* @param nodeIds Ids of the nodes whose exclusions to add - see {@link AddVotingConfigExclusionsRequest#resolveVotingConfigExclusions(ClusterState)
70
+
* @param nodeNames Names of the nodes whose exclusions to add - see {@link AddVotingConfigExclusionsRequest#resolveVotingConfigExclusions(ClusterState)
69
71
* @param timeout How long to wait for the added exclusions to take effect and be removed from the voting configuration.
Copy file name to clipboardExpand all lines: server/src/test/java/org/elasticsearch/action/admin/cluster/configuration/AddVotingConfigExclusionsRequestTests.java
+13-18Lines changed: 13 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -68,10 +68,8 @@ public void testSerializationForNodeIdOrNodeName() throws IOException {
Copy file name to clipboardExpand all lines: server/src/test/java/org/elasticsearch/action/admin/cluster/configuration/TransportAddVotingConfigExclusionsActionTests.java
+21-31Lines changed: 21 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -152,8 +152,7 @@ public void testWithdrawsVoteFromANode() throws InterruptedException {
0 commit comments