File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
internalClusterTest/java/org/elasticsearch/search/stats
main/java/org/elasticsearch/index/search/stats Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,8 @@ public void testSimpleStats() throws Exception {
140140
141141 indicesStats = indicesAdmin ().prepareStats ().setGroups ("group1" ).get ();
142142 assertThat (indicesStats .getTotal ().getSearch ().getGroupStats (), notNullValue ());
143+ assertThat (indicesStats .getTotal ().getSearch ().getGroupStats ().get ("group1" ).getDfsCount (), equalTo (0L ));
144+ assertThat (indicesStats .getTotal ().getSearch ().getGroupStats ().get ("group1" ).getDfsTimeInMillis (), equalTo (0L ));
143145 assertThat (indicesStats .getTotal ().getSearch ().getGroupStats ().get ("group1" ).getQueryCount (), greaterThan (0L ));
144146 assertThat (indicesStats .getTotal ().getSearch ().getGroupStats ().get ("group1" ).getQueryTimeInMillis (), greaterThan (0L ));
145147 assertThat (indicesStats .getTotal ().getSearch ().getGroupStats ().get ("group1" ).getFetchCount (), greaterThan (0L ));
Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ private Stats(StreamInput in) throws IOException {
124124 suggestCurrent = in .readVLong ();
125125
126126 if (in .getTransportVersion ().onOrAfter (TransportVersions .V_8_16_0 )) {
127+ dfsFailure = in .readVLong ();
127128 queryFailure = in .readVLong ();
128129 fetchFailure = in .readVLong ();
129130 }
You can’t perform that action at this time.
0 commit comments