From 0ebea49fd5dbc0977f9dd36c61fa0a8dfbe8af66 Mon Sep 17 00:00:00 2001 From: Nandan Kumar Date: Thu, 5 Sep 2024 22:25:26 +0530 Subject: [PATCH] Backported 1438 to 2.17 (#1440) * Added a override function for finalizeSnapshot Signed-off-by: nandan * Added release note for 2.17.0 Signed-off-by: nandan * Fixing Identation Signed-off-by: nandan --------- Signed-off-by: nandan --- ...ch-cross-cluster-replication.release-notes-2.17.0.0.md | 6 ++++++ .../replication/repository/RemoteClusterRepository.kt | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 release-notes/opensearch-cross-cluster-replication.release-notes-2.17.0.0.md diff --git a/release-notes/opensearch-cross-cluster-replication.release-notes-2.17.0.0.md b/release-notes/opensearch-cross-cluster-replication.release-notes-2.17.0.0.md new file mode 100644 index 00000000..92537837 --- /dev/null +++ b/release-notes/opensearch-cross-cluster-replication.release-notes-2.17.0.0.md @@ -0,0 +1,6 @@ +## Version 2.17.0.0 Release Notes + +Compatible with OpenSearch 2.17.0 + +### Bug Fixes +* Updating remote-migration IT with correct setting name ([#1412](https://github.com/opensearch-project/cross-cluster-replication/pull/1412)) diff --git a/src/main/kotlin/org/opensearch/replication/repository/RemoteClusterRepository.kt b/src/main/kotlin/org/opensearch/replication/repository/RemoteClusterRepository.kt index 8ea986c7..5efb54d0 100644 --- a/src/main/kotlin/org/opensearch/replication/repository/RemoteClusterRepository.kt +++ b/src/main/kotlin/org/opensearch/replication/repository/RemoteClusterRepository.kt @@ -74,6 +74,7 @@ import java.util.UUID import java.util.function.Consumer import java.util.function.Function import kotlin.collections.ArrayList +import org.opensearch.common.Priority const val REMOTE_REPOSITORY_PREFIX = "replication-remote-repo-" const val REMOTE_REPOSITORY_TYPE = "replication-remote-repository" @@ -122,6 +123,13 @@ class RemoteClusterRepository(private val repositoryMetadata: RepositoryMetadata throw UnsupportedOperationException("Operation not permitted") } + override fun finalizeSnapshot(shardGenerations: ShardGenerations?, repositoryStateId: Long, clusterMetadata: Metadata?, + snapshotInfo: SnapshotInfo?, repositoryMetaVersion: Version?, + stateTransformer: Function?, repositoryUpdatePriority: Priority, + listener: ActionListener?) { + throw UnsupportedOperationException("Operation not permitted") + } + override fun deleteSnapshots(snapshotIds: MutableCollection?, repositoryStateId: Long, repositoryMetaVersion: Version?, listener: ActionListener?) { throw UnsupportedOperationException("Operation not permitted")