Skip to content

Commit 704b4ce

Browse files
sachinpkaledk2k
authored andcommitted
Add default implementation to new finalizeSnapshot() in Repository (opensearch-project#16128)
Signed-off-by: Sachin Kale <sachinpkale@gmail.com>
1 parent 800f743 commit 704b4ce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

server/src/main/java/org/opensearch/repositories/Repository.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void finalizeSnapshot(
180180
* @param repositoryUpdatePriority priority for the cluster state update task
181181
* @param listener listener to be invoked with the new {@link RepositoryData} after completing the snapshot
182182
*/
183-
void finalizeSnapshot(
183+
default void finalizeSnapshot(
184184
ShardGenerations shardGenerations,
185185
long repositoryStateId,
186186
Metadata clusterMetadata,
@@ -189,7 +189,9 @@ void finalizeSnapshot(
189189
Function<ClusterState, ClusterState> stateTransformer,
190190
Priority repositoryUpdatePriority,
191191
ActionListener<RepositoryData> listener
192-
);
192+
) {
193+
throw new UnsupportedOperationException();
194+
}
193195

194196
/**
195197
* Deletes snapshots

0 commit comments

Comments
 (0)