You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Szilard Nemeth (Jira)" <ji...@apache.org> on 2022/02/23 09:10:00 UTC
[jira] [Resolved] (YARN-11071) AutoCreatedQueueTemplate incorrect wildcard level
[ https://issues.apache.org/jira/browse/YARN-11071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Szilard Nemeth resolved YARN-11071.
-----------------------------------
Hadoop Flags: Reviewed
Resolution: Fixed
> AutoCreatedQueueTemplate incorrect wildcard level
> -------------------------------------------------
>
> Key: YARN-11071
> URL: https://issues.apache.org/jira/browse/YARN-11071
> Project: Hadoop YARN
> Issue Type: Bug
> Components: capacity scheduler
> Affects Versions: 3.4.0
> Reporter: Tamas Domok
> Assignee: Tamas Domok
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.4.0
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> AutoCreatedQueueTemplate calculates wrong wildcard level so a *root.** wildcard won't match for a *root.queue* for example.
>
> Here the min should be min(queuePathMaxIndex, MAX_WILDCARD_LEVEL), instead of this:
> {code:java}
> int supportedWildcardLevel = Math.min(queuePathMaxIndex - 1,
> MAX_WILDCARD_LEVEL);
> {code}
> Test code to validate the fix:
> {code:java}
> @Test
> public void testWildcardAfterRoot() {
> conf.set(getTemplateKey("root.*", "acl_submit_applications"), "user");
> AutoCreatedQueueTemplate template =
> new AutoCreatedQueueTemplate(conf, new QueuePath("root.a"));
> template.setTemplateEntriesForChild(conf, "root.a");
> Assert.assertEquals("acl_submit_applications is set", "user",
> template.getTemplateProperties().get("acl_submit_applications"));
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org