File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
server/src/main/java/org/opensearch/indices Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 4747import org .opensearch .action .admin .indices .stats .CommonStatsFlags .Flag ;
4848import org .opensearch .action .admin .indices .stats .IndexShardStats ;
4949import org .opensearch .action .admin .indices .stats .ShardStats ;
50+ import org .opensearch .action .admin .indices .stats .StatusCounterStats ;
5051import org .opensearch .action .search .SearchRequestStats ;
5152import org .opensearch .action .search .SearchType ;
5253import org .opensearch .cluster .ClusterState ;
@@ -416,6 +417,8 @@ public class IndicesService extends AbstractLifecycleComponent
416417 private final Function <ShardId , ReplicationStats > segmentReplicationStatsProvider ;
417418 private volatile int maxSizeInRequestCache ;
418419 private volatile int defaultMaxMergeAtOnce ;
420+ private final StatusCounterStats statusCounterStats ;
421+
419422
420423 @ Override
421424 protected void doStart () {
@@ -591,6 +594,8 @@ protected void closeInternal() {
591594 this .defaultMaxMergeAtOnce = CLUSTER_DEFAULT_INDEX_MAX_MERGE_AT_ONCE_SETTING .get (clusterService .getSettings ());
592595 clusterService .getClusterSettings ()
593596 .addSettingsUpdateConsumer (CLUSTER_DEFAULT_INDEX_MAX_MERGE_AT_ONCE_SETTING , this ::onDefaultMaxMergeAtOnceUpdate );
597+ this .statusCounterStats = new StatusCounterStats ();
598+
594599 }
595600
596601 @ InternalApi
You can’t perform that action at this time.
0 commit comments