From 4104939355ee28fe7c2003047e494dbb2f3162ef Mon Sep 17 00:00:00 2001 From: Sachin Kale Date: Wed, 14 Aug 2024 14:34:58 +0530 Subject: [PATCH] Address PR comments Signed-off-by: Sachin Kale --- .../remotestore/RemoteStorePinnedTimestampService.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/server/src/main/java/org/opensearch/node/remotestore/RemoteStorePinnedTimestampService.java b/server/src/main/java/org/opensearch/node/remotestore/RemoteStorePinnedTimestampService.java index fb1fb26ce6da7..a078ac53fbc56 100644 --- a/server/src/main/java/org/opensearch/node/remotestore/RemoteStorePinnedTimestampService.java +++ b/server/src/main/java/org/opensearch/node/remotestore/RemoteStorePinnedTimestampService.java @@ -67,8 +67,7 @@ public class RemoteStorePinnedTimestampService implements Closeable { "cluster.remote_store.pinned_timestamps.scheduler_interval", TimeValue.timeValueMinutes(3), TimeValue.timeValueMinutes(1), - Setting.Property.NodeScope, - Setting.Property.Dynamic + Setting.Property.NodeScope ); public RemoteStorePinnedTimestampService( @@ -83,11 +82,6 @@ public RemoteStorePinnedTimestampService( this.clusterService = clusterService; pinnedTimestampsSchedulerInterval = CLUSTER_REMOTE_STORE_PINNED_TIMESTAMP_SCHEDULER_INTERVAL.get(settings); - clusterService.getClusterSettings() - .addSettingsUpdateConsumer( - CLUSTER_REMOTE_STORE_PINNED_TIMESTAMP_SCHEDULER_INTERVAL, - this::setPinnedTimestampsSchedulerInterval - ); } /**