Skip to content

Commit 86254f9

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 463e995 commit 86254f9

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

server/src/internalClusterTest/java/org/elasticsearch/monitor/metrics/IndicesMetricsIT.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ public void testIndicesMetrics() {
273273
)
274274
);
275275

276-
277276
client(searchNode).prepareSearch("time*").setPreference(preference).setSize(100).get().decRef();
278277
var search2 = indicesService.stats(CommonStatsFlags.ALL, false).getSearch().getTotal();
279278
collectThenAssertMetrics(

server/src/internalClusterTest/java/org/elasticsearch/search/stats/SearchStatsIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public void testSimpleStats() throws Exception {
130130

131131
IndicesStatsResponse indicesStats = indicesAdmin().prepareStats().get();
132132
logger.debug("###### indices search stats: {}", indicesStats.getTotal().getSearch());
133-
assertThat(indicesStats.getTotal().getSearch().getTotal().getDfsCount(),equalTo(0L));
133+
assertThat(indicesStats.getTotal().getSearch().getTotal().getDfsCount(), equalTo(0L));
134134
assertThat(indicesStats.getTotal().getSearch().getTotal().getDfsTimeInMillis(), equalTo(0L));
135135
assertThat(indicesStats.getTotal().getSearch().getTotal().getQueryCount(), greaterThan(0L));
136136
assertThat(indicesStats.getTotal().getSearch().getTotal().getQueryTimeInMillis(), greaterThan(0L));

server/src/main/java/org/elasticsearch/index/search/stats/ShardSearchStats.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ public void onFetchPhase(SearchContext searchContext, long tookInNanos) {
107107
});
108108
}
109109

110-
@Override
111-
public void onPreDfsPhase(SearchContext searchContext) {
110+
@Override
111+
public void onPreDfsPhase(SearchContext searchContext) {
112112
computeStats(searchContext, statsHolder -> statsHolder.dfsCurrent.inc());
113113
}
114114

115115
@Override
116-
public void onDfsPhase(SearchContext searchContext, long tookInNanos) {
116+
public void onDfsPhase(SearchContext searchContext, long tookInNanos) {
117117
computeStats(searchContext, statsHolder -> {
118118
statsHolder.dfsMetric.inc(tookInNanos);
119119
statsHolder.dfsCurrent.dec();

server/src/main/java/org/elasticsearch/index/shard/SearchOperationListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ default void onPreDfsPhase(SearchContext searchContext) {}
7979
*
8080
* @see #onFailedQueryPhase(SearchContext)
8181
*/
82-
default void onDfsPhase(SearchContext searchContext, long tookInNanos) {}
82+
default void onDfsPhase(SearchContext searchContext, long tookInNanos) {}
8383

8484
/**
8585
* Executed if a dfs phased failed.

server/src/test/java/org/elasticsearch/index/search/stats/SearchStatsTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ public void testShardLevelSearchGroupStats() throws Exception {
2222
// let's create two dummy search stats with groups
2323
Map<String, Stats> groupStats1 = new HashMap<>();
2424
Map<String, Stats> groupStats2 = new HashMap<>();
25-
groupStats2.put("group1", new Stats(1,1,1,1,1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1));
26-
SearchStats searchStats1 = new SearchStats(new Stats(1,1,1,1,1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), 0, groupStats1);
27-
SearchStats searchStats2 = new SearchStats(new Stats(1,1,1,1,1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), 0, groupStats2);
25+
groupStats2.put("group1", new Stats(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1));
26+
SearchStats searchStats1 = new SearchStats(new Stats(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), 0, groupStats1);
27+
SearchStats searchStats2 = new SearchStats(new Stats(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), 0, groupStats2);
2828

2929
// adding these two search stats and checking group stats are correct
3030
searchStats1.add(searchStats2);

server/src/test/java/org/elasticsearch/index/shard/SearchOperationListenerTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ public void validateReaderContext(ReaderContext readerContext, TransportRequest
177177
assertEquals(0, freeScrollContext.get());
178178
assertEquals(0, validateSearchContext.get());
179179

180-
181180
compositeListener.onQueryPhase(ctx, timeInNanos.get());
182181
assertEquals(0, preDfs.get());
183182
assertEquals(0, preFetch.get());

0 commit comments

Comments
 (0)