Skip to content

Commit 55d9a19

Browse files
Add default implementation to new finalizeSnapshot() in Repository (#16128)
Signed-off-by: Sachin Kale <[email protected]> (cherry picked from commit 9a5c7b2) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 3f71934 commit 55d9a19

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
@@ -193,7 +193,7 @@ void finalizeSnapshot(
193193
* @param repositoryUpdatePriority priority for the cluster state update task
194194
* @param listener listener to be invoked with the new {@link RepositoryData} after completing the snapshot
195195
*/
196-
void finalizeSnapshot(
196+
default void finalizeSnapshot(
197197
ShardGenerations shardGenerations,
198198
long repositoryStateId,
199199
Metadata clusterMetadata,
@@ -202,7 +202,9 @@ void finalizeSnapshot(
202202
Function<ClusterState, ClusterState> stateTransformer,
203203
Priority repositoryUpdatePriority,
204204
ActionListener<RepositoryData> listener
205-
);
205+
) {
206+
throw new UnsupportedOperationException();
207+
}
206208

207209
/**
208210
* Deletes snapshots

0 commit comments

Comments
 (0)