From dd34f0fe83340e09d699247dc38b62d8cf14a594 Mon Sep 17 00:00:00 2001 From: Rishikesh1159 Date: Tue, 28 Mar 2023 04:59:24 +0000 Subject: [PATCH] Fix failing tests. Signed-off-by: Rishikesh1159 --- .../org/opensearch/index/SegmentReplicationPressureService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/opensearch/index/SegmentReplicationPressureService.java b/server/src/main/java/org/opensearch/index/SegmentReplicationPressureService.java index 467134a2fc0cd..e0d9c94edcdd0 100644 --- a/server/src/main/java/org/opensearch/index/SegmentReplicationPressureService.java +++ b/server/src/main/java/org/opensearch/index/SegmentReplicationPressureService.java @@ -118,7 +118,7 @@ public SegmentReplicationPressureService( this.maxAllowedStaleReplicas = MAX_ALLOWED_STALE_SHARDS.get(settings); clusterSettings.addSettingsUpdateConsumer(MAX_ALLOWED_STALE_SHARDS, this::setMaxAllowedStaleReplicas); - this.failStaleReplicaTask = new AsyncFailStaleReplicaTask(TimeValue.timeValueMillis(1)); + this.failStaleReplicaTask = new AsyncFailStaleReplicaTask(TimeValue.timeValueSeconds(30)); } public void isSegrepLimitBreached(ShardId shardId) {