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 "Benjamin Teke (Jira)" <ji...@apache.org> on 2023/01/12 12:04:00 UTC

[jira] [Resolved] (YARN-11190) CS Mapping rule bug: User matcher does not work correctly for usernames with dot

     [ https://issues.apache.org/jira/browse/YARN-11190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Teke resolved YARN-11190.
----------------------------------
    Fix Version/s: 3.4.0
     Hadoop Flags: Reviewed
       Resolution: Fixed

> CS Mapping rule bug: User matcher does not work correctly for usernames with dot
> --------------------------------------------------------------------------------
>
>                 Key: YARN-11190
>                 URL: https://issues.apache.org/jira/browse/YARN-11190
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: capacity scheduler
>            Reporter: Szilard Nemeth
>            Assignee: Szilard Nemeth
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.4.0
>
>         Attachments: testUserNameSetDefaultAndPlaceWith2Rules.log, testUserNameSetDefaultAndPlaceWith2RulesUsernameReplacedWithDot.log, testcases.patch
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Given the following scenario, the placement engine does not work as expected.
> A user with a '.' (dot) inside his/her username submits a job.
> Let the username be "test.user"
> There are 2 mapping rules: 
> 1. The matcher matches the user with name "test.user" and has an associated mapping rule action that sets the default queue to "root.user".
> 2. The second mapping rule matches the same user ("test.user") and places the application to the default queue.
> *Expactation:*
> When the user with username "root.user" submits a job, the application will be placed to queue "root.user".
> *Observed behaviour:* 
> The application is placed to test_dot_user.
> This means that the dot is replaced to "{_}dot{_}" too early so that the default queue is set incorrectly.
>  
> I have attached a patch file that demonstrates this behaviour with 2 new testcases along with the logs of these testcases.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org