-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Changes in Snapshot Clone Flow for remote store interoperability. #7496
Conversation
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests for successful and failure cases.
cloning
with combination of source and target snapshot being shallow vs full snapshot, each snapshot with mix of regular + remote store index.- Failure cases like after taking lock there is failure to write metadata file, or even failure after writing both the files, etc
server/src/main/java/org/opensearch/index/store/lockmanager/RemoteStoreMetadataLockManager.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/repositories/blobstore/BlobStoreRepository.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/repositories/blobstore/BlobStoreRepository.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/repositories/blobstore/BlobStoreRepository.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/repositories/blobstore/BlobStoreRepository.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/snapshots/SnapshotsService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/store/lockmanager/RemoteStoreLockManager.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/repositories/Repository.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need thread safety for the LockManager interface, espl when we do cloning how do we know the lock is not released while getting cloned. I would recommend implement locks using a Releasable
interface and add thread safety to the implementation
Signed-off-by: Bansi Kasundra <kasundra@amazon.com>
Signed-off-by: Bansi Kasundra <kasundra@amazon.com>
Signed-off-by: Bansi Kasundra <kasundra@amazon.com>
Signed-off-by: Bansi Kasundra <kasundra@amazon.com>
Signed-off-by: Bansi Kasundra <kasundra@amazon.com>
Signed-off-by: Bansi Kasundra <kasundra@amazon.com>
Signed-off-by: Bansi Kasundra <kasundra@amazon.com>
Signed-off-by: Bansi Kasundra <kasundra@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Bansi Kasundra <kasundra@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
…opensearch-project#7496) Signed-off-by: Bansi Kasundra <kasundra@amazon.com>
…opensearch-project#7496) Signed-off-by: Bansi Kasundra <kasundra@amazon.com>
…opensearch-project#7496) Signed-off-by: Bansi Kasundra <kasundra@amazon.com>
…opensearch-project#7496) Signed-off-by: Bansi Kasundra <kasundra@amazon.com> Signed-off-by: sahil buddharaju <sahilbud@amazon.com>
…opensearch-project#7496) Signed-off-by: Bansi Kasundra <kasundra@amazon.com>
…opensearch-project#7496) Signed-off-by: Bansi Kasundra <kasundra@amazon.com> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Description
Changes in Clone Snapshot API required for Snapshot interoperability with Remote Store.
Related Issues
This change is dependent on Lock Manager changes and Create Snapshot API changes.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.