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 - ); } /**