Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-11190

CS Mapping rule bug: User matcher does not work correctly for usernames with dot

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      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.

      Attachments

        1. testUserNameSetDefaultAndPlaceWith2RulesUsernameReplacedWithDot.log
          3 kB
          Szilard Nemeth
        2. testUserNameSetDefaultAndPlaceWith2Rules.log
          6 kB
          Szilard Nemeth
        3. testcases.patch
          4 kB
          Szilard Nemeth

        Issue Links

          Activity

            People

              snemeth Szilard Nemeth
              snemeth Szilard Nemeth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m