Skip to content
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

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

kotwanikunal
Copy link
Member

Description

  • Removes feature flag for searchable snapshots

Issues Resolved

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

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)) {
Copy link
Member

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.

Copy link
Member

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.

Copy link
Member Author

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.

@kotwanikunal kotwanikunal force-pushed the feature-flag-removal branch 2 times, most recently from d630dd7 to 224132b Compare April 12, 2023 17:54
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.remotestore.CreateRemoteIndexTranslogDisabledIT.classMethod
      1 org.opensearch.remotestore.CreateRemoteIndexIT.testRemoteStoreDisabledByUser
      1 org.opensearch.remotestore.CreateRemoteIndexIT.classMethod

@andrross
Copy link
Member

Created issue #7128 for flaky failures in https://build.ci.opensearch.org/job/gradle-check/13937/

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.cluster.routing.allocation.decider.DiskThresholdDeciderIT.testIndexCreateBlockIsRemovedWhenAnyNodesNotExceedHighWatermarkWithAutoReleaseEnabled

@andrross
Copy link
Member

We should include a changelog entry announcing the feature as a part of this PR. Probably link to the meta issue.

Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
@kotwanikunal kotwanikunal force-pushed the feature-flag-removal branch from 56af808 to af042e6 Compare April 13, 2023 17:56
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      2 org.opensearch.remotestore.CreateRemoteIndexClusterDefaultDocRep.classMethod
      1 org.opensearch.remotestore.CreateRemoteIndexTranslogDisabledIT.testRemoteStoreDisabledByUser

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.indices.replication.SegmentReplicationIT.testScrollCreatedOnReplica

@andrross andrross merged commit 1c84218 into opensearch-project:main Apr 13, 2023
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

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 base branch is 2.x and the compare/head branch is backport/backport-7117-to-2.x.

@kotwanikunal
Copy link
Member Author

I'll take care of the backport.

kotwanikunal added a commit to kotwanikunal/OpenSearch that referenced this pull request Apr 13, 2023
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
(cherry picked from commit 1c84218)
andrross pushed a commit that referenced this pull request Apr 13, 2023
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
(cherry picked from commit 1c84218)
austintlee pushed a commit to austintlee/OpenSearch that referenced this pull request Apr 28, 2023
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
@kotwanikunal kotwanikunal deleted the feature-flag-removal branch May 12, 2023 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch v2.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Searchable Snapshots] Remove feature flag gating for GA release
2 participants