-
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
Fix store type settings ordering for searchable snapshots #7297
Fix store type settings ordering for searchable snapshots #7297
Conversation
Signed-off-by: Kunal Kotwani <[email protected]>
e4a3522
to
7421127
Compare
@@ -334,6 +342,7 @@ private void createIndexWithDocsAndEnsureGreen(int numReplicasIndex, int numOfDo | |||
Settings.builder() | |||
.put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, Integer.toString(numReplicasIndex)) | |||
.put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, "1") | |||
.put(IndexModule.INDEX_STORE_TYPE_SETTING.getKey(), IndexModule.Type.FS.getSettingsKey()) |
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.
Added this setting for ensuring store type is set to the correct value at restore.
Verified that assertRemoteSnapshotIndexSettings
fails if the ordering within RestoreService
is not flipped.
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #7297 +/- ##
=========================================
Coverage 70.65% 70.66%
- Complexity 59515 59545 +30
=========================================
Files 4862 4862
Lines 285544 285544
Branches 41153 41153
=========================================
+ Hits 201749 201774 +25
- Misses 67182 67205 +23
+ Partials 16613 16565 -48
... and 511 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Gradle Check (Jenkins) Run Completed with:
|
Flaky test documented here: #6124 |
Signed-off-by: Kunal Kotwani <[email protected]> (cherry picked from commit 72ed13b) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Kunal Kotwani <[email protected]> (cherry picked from commit 72ed13b) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… (#7298) (cherry picked from commit 72ed13b) Signed-off-by: Kunal Kotwani <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… (#7299) (cherry picked from commit 72ed13b) Signed-off-by: Kunal Kotwani <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…search-project#7297) Signed-off-by: Kunal Kotwani <[email protected]>
…search-project#7297) Signed-off-by: Kunal Kotwani <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
index.store.type
leads to wrong ordering for store type settings, causing the restore to be of the original configuration set on the index at backup which can befs
/ a local restored index instead. (Sample code which does that with benchmarks here)Issues Resolved
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.