-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Remove feature flag for searchable snapshots #7117
Remove feature flag for searchable snapshots #7117
Conversation
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
@@ -146,7 +145,7 @@ public RestoreSnapshotRequest(StreamInput in) throws IOException { | |||
indexSettings = readSettingsFromStream(in); | |||
ignoreIndexSettings = in.readStringArray(); | |||
snapshotUuid = in.readOptionalString(); | |||
if (FeatureFlags.isEnabled(FeatureFlags.SEARCHABLE_SNAPSHOT) && in.getVersion().onOrAfter(Version.V_2_4_0)) { | |||
if (in.getVersion().onOrAfter(Version.V_2_4_0)) { |
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.
Due to the feature flag, 2.4 doesn't actually understand this field (by default). I think we'll have to change this to 3.0 in this PR, then change it to 2.7 after the backport.
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.
It does mean the released version will be incompatible with the pre-release feature-flagged versions, which I think is probably fine.
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.
Yep. I think we also need to update the V_3_0_0
references with V_2_7_0
later to have the correct BWC.
d630dd7
to
224132b
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Created issue #7128 for flaky failures in https://build.ci.opensearch.org/job/gradle-check/13937/ |
Gradle Check (Jenkins) Run Completed with:
|
We should include a changelog entry announcing the feature as a part of this PR. Probably link to the meta issue. |
224132b
to
56af808
Compare
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
56af808
to
af042e6
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-7117-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 1c8421805955341ab692b003416b45b8d55ccd24
# Push it to GitHub
git push --set-upstream origin backport/backport-7117-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x Then, create a pull request where the |
I'll take care of the backport. |
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com> (cherry picked from commit 1c84218)
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
Description
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.