From 1c55ad772fffbde7d88715a5f4bafb80dec99ac3 Mon Sep 17 00:00:00 2001 From: Sachin Kale Date: Thu, 5 Sep 2024 12:03:23 +0530 Subject: [PATCH] Avoid backward incompatible change Signed-off-by: Sachin Kale --- .../main/java/org/opensearch/index/shard/IndexShard.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/src/main/java/org/opensearch/index/shard/IndexShard.java b/server/src/main/java/org/opensearch/index/shard/IndexShard.java index 43dfedccd497d..2b14367f3ddc7 100644 --- a/server/src/main/java/org/opensearch/index/shard/IndexShard.java +++ b/server/src/main/java/org/opensearch/index/shard/IndexShard.java @@ -5162,6 +5162,15 @@ public void syncSegmentsFromRemoteSegmentStore(boolean overrideLocal, final Runn } } + public void syncSegmentsFromGivenRemoteSegmentStore( + boolean overrideLocal, + RemoteSegmentStoreDirectory sourceRemoteDirectory, + long primaryTerm, + long commitGeneration + ) throws IOException { + // Keeping this method to avoid breaking change detection + } + /** * Downloads segments from given remote segment store for a specific commit. * @param overrideLocal flag to override local segment files with those in remote store