Skip to content

Commit f75a836

Browse files
committed
typo
Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
1 parent 563e7aa commit f75a836

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

server/src/internalClusterTest/java/org/opensearch/search/stats/StarTreeSearchStatsIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.opensearch.search.aggregations.metrics.Sum;
2121
import org.opensearch.test.OpenSearchIntegTestCase;
2222

23+
import static org.hamcrest.Matchers.lessThanOrEqualTo;
2324
import static org.opensearch.index.query.QueryBuilders.matchAllQuery;
2425
import static org.opensearch.index.query.QueryBuilders.termQuery;
2526
import static org.hamcrest.Matchers.equalTo;
@@ -171,7 +172,7 @@ public void testStarTreeQueryStats() throws Exception {
171172
assertThat(
172173
"Star-tree query time should be less than total query time",
173174
totalStats.getStarTreeQueryTimeInMillis(),
174-
lessThan(totalStats.getQueryTimeInMillis())
175+
lessThanOrEqualTo(totalStats.getQueryTimeInMillis())
175176
);
176177
}
177178
}

server/src/main/java/org/opensearch/index/search/stats/SearchStats.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public static class Stats implements Writeable, ToXContentFragment {
168168

169169
private long starTreeQueryCount;
170170
private long starTreeQueryTimeInMillis;
171-
public long starTreeQueryCurrent;
171+
private long starTreeQueryCurrent;
172172

173173
@Nullable
174174
private RequestStatsLongHolder requestStatsLongHolder;

0 commit comments

Comments
 (0)