-
Notifications
You must be signed in to change notification settings - Fork 128
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
Add feature enable setting for controller index #2652
Conversation
Shouldn't we check this kind of places too:
|
plugin/src/main/java/org/opensearch/ml/plugin/MachineLearningPlugin.java
Outdated
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/ml/action/controller/CreateControllerTransportAction.java
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/ml/settings/MLFeatureEnabledSetting.java
Outdated
Show resolved
Hide resolved
@b4sjoo Any update on this? |
@dhrubo-os I don't think there are any blocking comments left, can we approve and merge it? |
I haven't see any unit tests when controller is disabled for the transport actions. Can we add some tests accordingly? |
plugin/src/main/java/org/opensearch/ml/action/controller/CreateControllerTransportAction.java
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/ml/action/controller/DeleteControllerTransportAction.java
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/ml/action/controller/GetControllerTransportAction.java
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/ml/action/controller/UpdateControllerTransportAction.java
Show resolved
Hide resolved
Integration tests are failing. I retried now. I left few comments @b4sjoo |
Fine I can add them when I get back. Not a hard job |
I think we should also check here before performing deletion? |
No need because it calls |
4ba9bd6
to
f84460b
Compare
Signed-off-by: b4sjoo <[email protected]>
f84460b
to
a14cbf4
Compare
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-feature/multi_tenancy feature/multi_tenancy
# Navigate to the new working tree
cd .worktrees/backport-feature/multi_tenancy
# Create a new branch
git switch --create backport/backport-2652-to-feature/multi_tenancy
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 a72181a0fadd32dd16b7a84092dc2e7e2fc4d8b9
# Push it to GitHub
git push --set-upstream origin backport/backport-2652-to-feature/multi_tenancy
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-feature/multi_tenancy Then, create a pull request where the |
Signed-off-by: b4sjoo <[email protected]> (cherry picked from commit a72181a)
Signed-off-by: b4sjoo <[email protected]> (cherry picked from commit a72181a) Co-authored-by: Sicheng Song <[email protected]>
Description
This PR will add a feature enable setting for controller index, to support multi-tenancy
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.