[ 
https://issues.apache.org/jira/browse/HDFS-5821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13910953#comment-13910953
 ] 

Arpit Agarwal commented on HDFS-5821:
-------------------------------------

Nice fix! Do the following expressions also need to be updated?

{code:xml}
        <comparator>
          <type>RegexpComparator</type>
          <expected-output>^/user/[a-zA-z0-9]*/dir0/dir1</expected-output>
        </comparator>
        <comparator>
          <type>RegexpComparator</type>
          <expected-output>^/user/[a-zA-z0-9]*/dir0/dir2</expected-output>
        </comparator>
{code}

> TestHDFSCLI fails for user names with the dash character
> --------------------------------------------------------
>
>                 Key: HDFS-5821
>                 URL: https://issues.apache.org/jira/browse/HDFS-5821
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 2.2.0
>            Reporter: Gera Shegalov
>         Attachments: HDFS-5821-trunk.v01.patch
>
>
> testHDFSConf.xml uses regexes inconsistently to match the username from 
> {code}[a-zA-z0-9]*{code} to {code}[a-z]*{code}. This by far does not cover 
> the space of possible OS user names.  For us, it fails for a user name 
> containing {{'-'}}. Instead of keeping updating regex, we propose to use the 
> macro USERNAME.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to