-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[WLM] Add WLM mode validation for workload group CRUD requests #18652
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
base: main
Are you sure you want to change the base?
Conversation
145a19b
to
4705a32
Compare
❌ Gradle check result for 4705a32: 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? |
...ns/workload-management/src/main/java/org/opensearch/plugin/wlm/WorkloadManagementPlugin.java
Outdated
Show resolved
Hide resolved
...ns/workload-management/src/main/java/org/opensearch/plugin/wlm/WorkloadManagementPlugin.java
Outdated
Show resolved
Hide resolved
...d-management/src/main/java/org/opensearch/plugin/wlm/rest/RestCreateWorkloadGroupAction.java
Outdated
Show resolved
Hide resolved
...d-management/src/main/java/org/opensearch/plugin/wlm/rest/RestDeleteWorkloadGroupAction.java
Outdated
Show resolved
Hide resolved
...d-management/src/main/java/org/opensearch/plugin/wlm/rest/RestUpdateWorkloadGroupAction.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Ruirui Zhang <[email protected]>
❌ Gradle check result for ab07f3d: 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? |
...ns/workload-management/src/main/java/org/opensearch/plugin/wlm/WorkloadManagementPlugin.java
Outdated
Show resolved
Hide resolved
plugins/workload-management/src/main/java/org/opensearch/plugin/wlm/WlmModeManager.java
Outdated
Show resolved
Hide resolved
plugins/workload-management/src/main/java/org/opensearch/plugin/wlm/WlmModeManager.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Ruirui Zhang <[email protected]>
❌ Gradle check result for 13c3030: 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? |
Description
This PR adds a check for the current WLM mode in the prepareRequest() method of the Create, Update, and Delete workload group handlers. If the WLM mode is set to DISABLED, the requests will now fail with error, preventing unintended workload group operations when WLM is turned off.
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
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.