diff options
author | Simon Willnauer <simon.willnauer@elasticsearch.com> | 2016-06-17 17:07:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-17 17:07:19 +0200 |
commit | bdb6dcea3ae53e7dea8ce060c46100ed8f25385e (patch) | |
tree | 1c9e31a66f0761add6856e34c952f272513ac80f /benchmarks/src/main/java | |
parent | bce1abec48c521a422f6016479343b28f2538c7d (diff) |
Cleanup ClusterService dependencies and detached from Guice (#18941)
This change removes some unnecessary dependencies from ClusterService
and cleans up ClusterName creation. ClusterService is now not created
by guice anymore.
Diffstat (limited to 'benchmarks/src/main/java')
-rw-r--r-- | benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/AllocationBenchmark.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/AllocationBenchmark.java b/benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/AllocationBenchmark.java index d5bb0916ec..5e5f35f604 100644 --- a/benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/AllocationBenchmark.java +++ b/benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/AllocationBenchmark.java @@ -147,7 +147,8 @@ public class AllocationBenchmark { for (int i = 1; i <= numNodes; i++) { nb.put(Allocators.newNode("node" + i, Collections.singletonMap("tag", "tag_" + (i % numTags)))); } - initialClusterState = ClusterState.builder(ClusterName.DEFAULT).metaData(metaData).routingTable(routingTable).nodes + initialClusterState = ClusterState.builder(ClusterName.CLUSTER_NAME_SETTING.getDefault(Settings.EMPTY)) + .metaData(metaData).routingTable(routingTable).nodes (nb).build(); } |