DataFormat-aware shallow snapshot v2 support - #21742
Conversation
PR Reviewer Guide 🔍(Review updated until commit 04e8764)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 04e8764 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 04e8764
Suggestions up to commit 92d2060
Suggestions up to commit 92d2060
Suggestions up to commit a11aab5
Suggestions up to commit d7bd5e2
|
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.46% 73.50% +0.03%
- Complexity 75351 75364 +13
============================================
Files 6028 6028
Lines 341999 342003 +4
Branches 49185 49185
============================================
+ Hits 251257 251379 +122
+ Misses 70809 70628 -181
- Partials 19933 19996 +63 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ec0519d to
674e230
Compare
|
Persistent review updated to latest commit 674e230 |
|
❌ Gradle check result for 674e230: 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? |
674e230 to
f9e0baa
Compare
|
Persistent review updated to latest commit f9e0baa |
f9e0baa to
5622ea4
Compare
|
Persistent review updated to latest commit 5622ea4 |
|
❕ Gradle check result for 5622ea4: 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. |
2c363de to
a11aab5
Compare
|
Persistent review updated to latest commit a11aab5 |
|
❌ Gradle check result for a11aab5: 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? |
a11aab5 to
92d2060
Compare
|
Persistent review updated to latest commit 92d2060 |
|
❌ Gradle check result for 92d2060: 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 92d2060 |
Signed-off-by: Kamal Nayan <askkamal@amazon.com>
Signed-off-by: Kamal Nayan <askkamal@amazon.com>
Signed-off-by: Kamal Nayan <askkamal@amazon.com>
… snapshot v2 IT's Signed-off-by: Kamal Nayan <askkamal@amazon.com>
92d2060 to
04e8764
Compare
|
Persistent review updated to latest commit 04e8764 |
|
❌ Gradle check result for 04e8764: 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 04e8764 |
* Added snapshot v2 support for Dataformat aware indices Signed-off-by: Kamal Nayan <askkamal@amazon.com> * Added test, logs and some other fixes Signed-off-by: Kamal Nayan <askkamal@amazon.com> * Removed the extra newDirectory api Signed-off-by: Kamal Nayan <askkamal@amazon.com> * Added UTs Signed-off-by: Kamal Nayan <askkamal@amazon.com> * Minor addition of ArrowBasePlugin.class ot the nodePlugins to fix DFA snapshot v2 IT's Signed-off-by: Kamal Nayan <askkamal@amazon.com> --------- Signed-off-by: Kamal Nayan <askkamal@amazon.com> Co-authored-by: Kamal Nayan <askkamal@amazon.com>
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.