Fix MinimumMasterNodesIT Test (#59054) (#59057)

Tiny oversight in dee9e048bdcc5ba59f20d2554e989015463df05a caused
the `otherNodes` collection to incorrectly contain `master` here.
This commit is contained in:
Armin Braun 2020-07-06 13:00:15 +02:00 committed by GitHub
parent f35ad0d4e1
commit 722d94688b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,6 +295,7 @@ public class MinimumMasterNodesIT extends ESIntegTestCase {
final String master = internalCluster().getMasterName(); final String master = internalCluster().getMasterName();
Set<String> otherNodes = new HashSet<>(Arrays.asList(internalCluster().getNodeNames())); Set<String> otherNodes = new HashSet<>(Arrays.asList(internalCluster().getNodeNames()));
otherNodes.remove(master);
NetworkDisruption partition = isolateMasterDisruption(NetworkDisruption.DISCONNECT); NetworkDisruption partition = isolateMasterDisruption(NetworkDisruption.DISCONNECT);
internalCluster().setDisruptionScheme(partition); internalCluster().setDisruptionScheme(partition);