From a0aabe2e8c207770379bbeede2b0bc6a5ce575ef Mon Sep 17 00:00:00 2001 From: Finn Carroll Date: Wed, 31 Jul 2024 10:28:51 -0700 Subject: [PATCH] Set node name in log config to avoid console barf Signed-off-by: Finn Carroll --- .../aggregations/BKDTreeMultiRangesTraverseBenchmark.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/benchmarks/src/main/java/org/opensearch/benchmark/search/aggregations/BKDTreeMultiRangesTraverseBenchmark.java b/benchmarks/src/main/java/org/opensearch/benchmark/search/aggregations/BKDTreeMultiRangesTraverseBenchmark.java index 0b45ea1fe59ac..134dcdcb7266f 100644 --- a/benchmarks/src/main/java/org/opensearch/benchmark/search/aggregations/BKDTreeMultiRangesTraverseBenchmark.java +++ b/benchmarks/src/main/java/org/opensearch/benchmark/search/aggregations/BKDTreeMultiRangesTraverseBenchmark.java @@ -34,9 +34,6 @@ import org.openjdk.jmh.annotations.*; import org.apache.lucene.index.PointValues; -import org.apache.lucene.search.ScoreDoc; -import org.apache.lucene.search.TopDocs; -import org.apache.lucene.search.TotalHits; import org.apache.lucene.document.Field; import org.apache.lucene.document.IntField; import org.apache.lucene.index.DirectoryReader; @@ -52,6 +49,7 @@ import java.nio.file.Path; import java.util.List; +import org.opensearch.common.logging.LogConfigurator; import org.opensearch.index.mapper.MappedFieldType; import org.opensearch.index.mapper.NumberFieldMapper; import org.opensearch.index.mapper.NumericPointEncoder; @@ -99,6 +97,7 @@ public static class treeState { @Setup public void setup() throws IOException { + LogConfigurator.setNodeName("sample-name"); random = new Random(seed); tmpDir = Files.createTempDirectory("tree-test"); directory = FSDirectory.open(tmpDir);