Skip to content

Commit c9ad00b

Browse files
committed
fix null pointer and breaking changes
Signed-off-by: Anthony Leong <aj.leong623@gmail.com>
1 parent ad95bff commit c9ad00b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/src/main/java/org/opensearch/indices/IndicesService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -810,9 +810,9 @@ public NodeIndicesStats stats(CommonStatsFlags flags) {
810810
}
811811
if (flags.getIncludeIndicesStatsByLevel()) {
812812
NodeIndicesStats.StatsLevel statsLevel = NodeIndicesStats.getAcceptedLevel(flags.getLevels());
813-
return new NodeIndicesStats(commonStats, statsByShard(this, flags), searchRequestStats, statsLevel);
813+
return new NodeIndicesStats(commonStats, statsByShard(this, flags), searchRequestStats, statusCounterStats, statsLevel);
814814
} else {
815-
return new NodeIndicesStats(commonStats, statsByShard(this, flags), searchRequestStats);
815+
return new NodeIndicesStats(commonStats, statsByShard(this, flags), searchRequestStats, statusCounterStats);
816816
}
817817
}
818818

@@ -1367,10 +1367,10 @@ public IndicesQueryCache getIndicesQueryCache() {
13671367
*
13681368
* @param stats Instance storing {@link DocStatusStats}
13691369
*/
1370-
/*@Deprecated(since = "3.3.0")
1370+
@Deprecated(since = "3.3.0")
13711371
public void addDocStatusStats(final org.opensearch.index.shard.IndexingStats.Stats.DocStatusStats stats) {
13721372
oldShardsStats.indexingStats.getTotal().getDocStatusStats().add(stats);
1373-
}*/
1373+
}
13741374

13751375
/**
13761376
* Accumulate stats from the passed Object

0 commit comments

Comments
 (0)