-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Avoid NPE if on SnapshotInfo if 'shallow' boolean not present #18218
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
Avoid NPE if on SnapshotInfo if 'shallow' boolean not present #18218
Conversation
|
❌ Gradle check result for cfcd98b: 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? |
peternied
left a comment
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.
👍
Signed-off-by: Andrew Ross <andrross@amazon.com>
cfcd98b to
6214878
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18218 +/- ##
============================================
+ Coverage 72.52% 72.64% +0.12%
- Complexity 67228 67343 +115
============================================
Files 5476 5476
Lines 310470 310470
Branches 45131 45131
============================================
+ Hits 225168 225552 +384
+ Misses 66973 66603 -370
+ Partials 18329 18315 -14 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.19 2.19
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.19
# Create a new branch
git switch --create backport/backport-18218-to-2.19
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 c32262dce18edd850793a753b3fda894eec23ee0
# Push it to GitHub
git push --set-upstream origin backport/backport-18218-to-2.19
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.19Then, create a pull request where the |
…arch-project#18218) Signed-off-by: Andrew Ross <andrross@amazon.com> (cherry picked from commit c32262d)
I don't have a great answer for how to implement a test here. I don't think there is a way to get the current code to produce a snapshot metadata entry that does not have this
remote_store_index_shallow_copyfield. It seems like we're missing some more comprehensive backward compatibility testing for snapshots.Related Issues
Resolves #18187
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.