DataFormat-aware shallow snapshot v2 support#21742
Conversation
PR Reviewer Guide 🔍(Review updated until commit 674e230)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 674e230 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit ec0519d
Suggestions up to commit ec0519d
Suggestions up to commit 97d7d61
Suggestions up to commit 97d7d61
Suggestions up to commit 97d7d61
|
Signed-off-by: Kamal Nayan <askkamal@amazon.com>
d803bb2 to
97d7d61
Compare
|
Persistent review updated to latest commit 97d7d61 |
|
❌ Gradle check result for 97d7d61: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit 97d7d61 |
|
❌ Gradle check result for 97d7d61: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit 97d7d61 |
|
Persistent review updated to latest commit ec0519d |
|
❌ Gradle check result for ec0519d: null Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit ec0519d |
|
❕ Gradle check result for ec0519d: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #21742 +/- ##
============================================
+ Coverage 73.33% 73.40% +0.07%
- Complexity 74996 75047 +51
============================================
Files 6012 6012
Lines 340934 340939 +5
Branches 49076 49076
============================================
+ Hits 250021 250280 +259
+ Misses 71005 70742 -263
- Partials 19908 19917 +9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Kamal Nayan <askkamal@amazon.com>
Signed-off-by: Kamal Nayan <askkamal@amazon.com>
ec0519d to
674e230
Compare
|
Persistent review updated to latest commit 674e230 |
Description
Description
Wires DataFormat-Aware (DFA) indices into the existing shallow snapshot v2
path so V2 (pinned-timestamp) snapshots and restores work end-to-end for all the supported data formats.
Builds on #21311 (DFA NRT replication engine and remote-store wiring) by
making the cleanup path format-aware: when the live IndexService is gone but
the snapshotted IndexMetadata is available, cleanup now routes DFA indices
through DataFormatAwareRemoteDirectory so all per-format files are
enumerated, rather than leaking parquet/segments dirs.
What changes
RemoteSegmentStoreDirectoryFactory.newDirectory(...)andRemoteSegmentStoreDirectory.remoteDirectoryCleanup(...). Existingoverloads are preserved and delegate to the new variants with
null.BlobStoreRepository,SnapshotsService,TransportCleanupRepositoryAction,IndexShard,StoreRecovery, andNodeupdated to threadIndexMetadatathrough.DataFormatAwareRestoreShallowSnapshotV2IT(18 tests)covering V2 snapshot create / restore / clone / delete / multi-shard /
concurrent / rename / pinned-timestamp cleanup / catalog-generation
preservation on DFA indices, plus parameterized variant
DataFormatAwareRestoreShallowSnapshotV2WithLuceneITexercising theparquet + lucene-secondary code paths.
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
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.