Skip to content

Fix monitor mode workload group rejections - #22654

Open
SaiManas2106 wants to merge 1 commit into
opensearch-project:mainfrom
SaiManas2106:fix-monitor-mode-rejections
Open

Fix monitor mode workload group rejections#22654
SaiManas2106 wants to merge 1 commit into
opensearch-project:mainfrom
SaiManas2106:fix-monitor-mode-rejections

Conversation

@SaiManas2106

Copy link
Copy Markdown

Description

Monitor-mode workload groups are intended to observe resource usage without
rejecting live traffic. However, rejectIfNeeded still threw
OpenSearchRejectedExecutionException when a monitor group exceeded a
resource limit.

This change skips rejection for MONITOR mode while preserving the existing
behavior for SOFT and ENFORCED modes. It adds a regression test for an
over-limit monitor group while the node is under duress, asserting that no
rejection counters are incremented.

Related Issues

Resolves #22616

Check List

  • Functionality includes testing.
  • API changes: not applicable.
  • Public documentation: not applicable.

Testing

  • ./gradlew :server:test --tests "org.opensearch.wlm.WorkloadGroupServiceTests"
  • ./gradlew :server:spotlessJavaCheck

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.

Signed-off-by: SaiManas2106 <saimanas2004@gmail.com>
@SaiManas2106
SaiManas2106 requested a review from a team as a code owner August 5, 2026 17:42
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🧪 PR contains tests
🔒 No security concerns identified
✅ No TODO sections
🔀 No multiple PR themes
⚡ No major issues detected

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

❌ Gradle check result for 7d363ac: 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?

@SaiManas2106

Copy link
Copy Markdown
Author

The Gradle check failure appears unrelated to this PR.

Failed test:
org.opensearch.repositories.hdfs.HaHdfsFailoverTestSuiteIT.classMethod

Failure:
com.carrotsearch.randomizedtesting.ThreadLeakError: 1 thread leaked from SUITE scope
(IPC Parameter Sending Thread)

This test has an existing flaky-test report: #17692. This PR only changes WLM monitor-mode rejection handling and its WLM regression test; it does not modify HDFS repository code.

Could the Gradle check please be rerun?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WLM: monitor-mode workload group still rejects requests with 429 on resource breach

1 participant