From e5b829303eb508d32ca6b4edb5705dca7539a122 Mon Sep 17 00:00:00 2001 From: Luca Cavanna Date: Wed, 4 Sep 2013 10:37:00 +0200 Subject: [PATCH] Added client_ prefix to node clients created by TestCluster (client_node_#) --- .../java/org/elasticsearch/test/integration/TestCluster.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/elasticsearch/test/integration/TestCluster.java b/src/test/java/org/elasticsearch/test/integration/TestCluster.java index e61e2cef370..3108916abae 100644 --- a/src/test/java/org/elasticsearch/test/integration/TestCluster.java +++ b/src/test/java/org/elasticsearch/test/integration/TestCluster.java @@ -378,7 +378,7 @@ public class TestCluster { public Client nodeClient() { ensureOpen(); if (clientNode == null) { - String name = buildNodeName(); + String name = "client_" + buildNodeName(); String settingsSource = getClass().getName().replace('.', '/') + ".yml"; Settings finalSettings = settingsBuilder().loadFromClasspath(settingsSource).put(defaultSettings).put("node.client", true).put("name", name) .build();