[TEST] apply default settings before test specific ones to external nodes in bw comp tests, otherwise the defaults win all the time

This commit is contained in:
javanna 2014-08-28 14:54:00 +02:00 committed by Luca Cavanna
parent 44dbd9b0c9
commit 645db6867b
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ final class ExternalNode implements Closeable {
synchronized ExternalNode start(Client localNode, Settings defaultSettings, String nodeName, String clusterName, int nodeOrdinal) throws IOException, InterruptedException {
ExternalNode externalNode = new ExternalNode(path, clusterName, random.nextLong(), settingsSource);
Settings settings = ImmutableSettings.builder().put(settingsSource.node(nodeOrdinal)).put(defaultSettings).build();
Settings settings = ImmutableSettings.builder().put(defaultSettings).put(settingsSource.node(nodeOrdinal)).build();
externalNode.startInternal(localNode, settings, nodeName, clusterName);
return externalNode;
}