@@ -57,9 +57,9 @@ public void testShardLevelSearchGroupStats() throws Exception {
57
57
// let's create two dummy search stats with groups
58
58
Map <String , Stats > groupStats1 = new HashMap <>();
59
59
Map <String , Stats > groupStats2 = new HashMap <>();
60
- groupStats2 .put ("group1" , new Stats (1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ));
61
- SearchStats searchStats1 = new SearchStats (new Stats (1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ), 0 , groupStats1 );
62
- SearchStats searchStats2 = new SearchStats (new Stats (1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ), 0 , groupStats2 );
60
+ groupStats2 .put ("group1" , new Stats (1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ));
61
+ SearchStats searchStats1 = new SearchStats (new Stats (1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ), 0 , groupStats1 );
62
+ SearchStats searchStats2 = new SearchStats (new Stats (1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ), 0 , groupStats2 );
63
63
64
64
// adding these two search stats and checking group stats are correct
65
65
searchStats1 .add (searchStats2 );
@@ -128,6 +128,7 @@ private static void assertStats(Stats stats, long equalTo) {
128
128
assertEquals (equalTo , stats .getSuggestCount ());
129
129
assertEquals (equalTo , stats .getSuggestTimeInMillis ());
130
130
assertEquals (equalTo , stats .getSuggestCurrent ());
131
+ assertEquals (equalTo , stats .getSearchIdleReactivateCount ());
131
132
// avg_concurrency is not summed up across stats
132
133
assertEquals (1 , stats .getConcurrentAvgSliceCount (), 0 );
133
134
}
0 commit comments