Skip to content

Commit ad9e107

Browse files
committed
test for breaking detection
Signed-off-by: Anthony Leong <aj.leong623@gmail.com>
1 parent ab74705 commit ad9e107

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
import org.opensearch.action.admin.indices.stats.CommonStatsFlags.Flag;
4848
import org.opensearch.action.admin.indices.stats.IndexShardStats;
4949
import org.opensearch.action.admin.indices.stats.ShardStats;
50+
import org.opensearch.action.admin.indices.stats.StatusCounterStats;
5051
import org.opensearch.action.search.SearchRequestStats;
5152
import org.opensearch.action.search.SearchType;
5253
import 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

0 commit comments

Comments
 (0)