From e17bd8e9139bd4f6b8d648cc21dec597a44dbaf2 Mon Sep 17 00:00:00 2001 From: Benjamin Trent Date: Fri, 21 Sep 2018 04:49:20 -0700 Subject: [PATCH] Removing poor randomization for node name (#33918) --- .../xpack/ml/MachineLearningFeatureSetTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/MachineLearningFeatureSetTests.java b/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/MachineLearningFeatureSetTests.java index ff6a5451268..6a2f25f6a30 100644 --- a/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/MachineLearningFeatureSetTests.java +++ b/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/MachineLearningFeatureSetTests.java @@ -347,7 +347,7 @@ public class MachineLearningFeatureSetTests extends ESTestCase { roles.add(DiscoveryNode.Role.DATA); roles.add(DiscoveryNode.Role.MASTER); roles.add(DiscoveryNode.Role.INGEST); - nodesBuilder.add(new DiscoveryNode(randomAlphaOfLength(i+1), + nodesBuilder.add(new DiscoveryNode("ml-feature-set-given-ml-node-" + i, new TransportAddress(TransportAddress.META_ADDRESS, 9100 + i), attrs, roles, @@ -359,7 +359,7 @@ public class MachineLearningFeatureSetTests extends ESTestCase { roles.add(DiscoveryNode.Role.DATA); roles.add(DiscoveryNode.Role.MASTER); roles.add(DiscoveryNode.Role.INGEST); - nodesBuilder.add(new DiscoveryNode(randomAlphaOfLength(i+1), + nodesBuilder.add(new DiscoveryNode("ml-feature-set-given-non-ml-node-" + i, new TransportAddress(TransportAddress.META_ADDRESS, 9300 + i), attrs, roles,