You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/src/main/java/org/opensearch/repositories/Repository.java
+37Lines changed: 37 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -402,6 +402,43 @@ void snapshotShard(
402
402
* @param startTime start time of the snapshot commit, this will be used as the start time for snapshot.
403
403
* @param listener listener invoked on completion
404
404
*/
405
+
defaultvoidsnapshotRemoteStoreIndexShard(
406
+
Storestore,
407
+
SnapshotIdsnapshotId,
408
+
IndexIdindexId,
409
+
IndexCommitsnapshotIndexCommit,
410
+
@NullableStringshardStateIdentifier,
411
+
IndexShardSnapshotStatussnapshotStatus,
412
+
longprimaryTerm,
413
+
longstartTime,
414
+
ActionListener<String> listener
415
+
) {
416
+
thrownewUnsupportedOperationException();
417
+
}
418
+
419
+
/**
420
+
* Adds a reference of remote store data for a index commit point.
421
+
* <p>
422
+
* The index commit point can be obtained by using {@link org.opensearch.index.engine.Engine#acquireLastIndexCommit} method.
423
+
* Or for closed index can be obtained by reading last remote uploaded metadata by using {@link org.opensearch.index.shard.IndexShard#acquireLastRemoteUploadedIndexCommit} method.
424
+
* Repository implementations shouldn't release the snapshot index commit point. It is done by the method caller.
425
+
* <p>
426
+
* As snapshot process progresses, implementation of this method should update {@link IndexShardSnapshotStatus} object and check
427
+
* {@link IndexShardSnapshotStatus#isAborted()} to see if the snapshot process should be aborted.
428
+
* @param store store to be snapshotted
429
+
* @param snapshotId snapshot id
430
+
* @param indexId id for the index being snapshotted
431
+
* @param snapshotIndexCommit commit point
432
+
* @param shardStateIdentifier a unique identifier of the state of the shard that is stored with the shard's snapshot and used
433
+
* to detect if the shard has changed between snapshots. If {@code null} is passed as the identifier
434
+
* snapshotting will be done by inspecting the physical files referenced by {@code snapshotIndexCommit}
435
+
* @param snapshotStatus snapshot status
436
+
* @param primaryTerm current Primary Term
437
+
* @param commitGeneration current commit generation
438
+
* @param startTime start time of the snapshot commit, this will be used as the start time for snapshot.
439
+
* @param indexFilesToFileLengthMap map of index files to file length
0 commit comments