YARN-11973. RM engine: comma-separated username matching in placement rules - #8656
Open
myloginid wants to merge 2 commits into
Open
YARN-11973. RM engine: comma-separated username matching in placement rules#8656myloginid wants to merge 2 commits into
myloginid wants to merge 2 commits into
Conversation
… rules. Wire OrMatcher into user rule creation via createUserMatcherFromMatches(). Applies to JSON rules and legacy u: queue mappings. Includes JSON schema update and unit/integration tests. Sub-task of YARN-11972. Co-authored-by: Cursor <cursoragent@cursor.com>
myloginid
force-pushed
the
YARN-11972-comma-separated-user-placement-rules
branch
from
August 4, 2026 13:15
5f38b43 to
0a60378
Compare
This was referenced Aug 4, 2026
Author
|
Please add labels: |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
Use splitPreserveAllTokens so values like alice,,bob are rejected instead of silently collapsing to alice,bob. Co-authored-by: Cursor <cursoragent@cursor.com>
|
🎊 +1 overall
This message was automatically generated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RM engine support for comma-separated usernames in Capacity Scheduler user placement rules.
Changes
MappingRuleMatchers.createUserMatcherFromMatches()using existingOrMatcherMappingRuleCreator(JSON) andMappingRule.createLegacyRule()(legacyu:mappings)matchesTestMappingRuleCreator,TestMappingRuleMatchers,TestMappingRuleRelated sub-tasks (YARN-11972)
Test plan
mvn test -pl hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager -Dtest=TestMappingRuleCreator,TestMappingRuleMatchers,TestMappingRule -amSub-task of YARN-11972.
Fixes: https://issues.apache.org/jira/browse/YARN-11973