hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-13051) Add Glob unit test for special characters
Date Thu, 05 May 2016 22:09:13 GMT

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

Hudson commented on HADOOP-13051:
---------------------------------

FAILURE: Integrated in Hadoop-trunk-Commit #9725 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/9725/])
HADOOP-13051. Test for special characters in path being respected during (raviprak: rev d8faf47f32c7ace6ceeb55bbb584c2dbab38902f)
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestGlobPaths.java


> Add Glob unit test for special characters
> -----------------------------------------
>
>                 Key: HADOOP-13051
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13051
>             Project: Hadoop Common
>          Issue Type: Test
>          Components: fs
>    Affects Versions: 3.0.0
>            Reporter: Harsh J
>            Assignee: Harsh J
>            Priority: Minor
>             Fix For: 3.0.0
>
>         Attachments: HADOOP-13051.000.patch
>
>
> On {{branch-2}}, the below is the (incorrect) behaviour today, where paths with special
characters get dropped during globStatus calls:
> {code}
> bin/hdfs dfs -mkdir /foo
> bin/hdfs dfs -touchz /foo/foo1
> bin/hdfs dfs -touchz $'/foo/foo1\r'
> bin/hdfs dfs -ls '/foo/*'
> -rw-r--r--   3 harsh supergroup          0 2016-04-22 17:35 /foo/foo1
> -rw-r--r--   3 harsh supergroup          0 2016-04-22 17:35 /foo/foo1^M
> bin/hdfs dfs -ls '/foo/*'
> -rw-r--r--   3 harsh supergroup          0 2016-04-22 17:35 /foo/foo1
> {code}
> Whereas trunk has the right behaviour, subtly fixed via the pattern library change of
HADOOP-12436:
> {code}
> bin/hdfs dfs -mkdir /foo
> bin/hdfs dfs -touchz /foo/foo1
> bin/hdfs dfs -touchz $'/foo/foo1\r'
> bin/hdfs dfs -ls '/foo/*'
> -rw-r--r--   3 harsh supergroup          0 2016-04-22 17:35 /foo/foo1
> -rw-r--r--   3 harsh supergroup          0 2016-04-22 17:35 /foo/foo1^M
> bin/hdfs dfs -ls '/foo/*'
> -rw-r--r--   3 harsh supergroup          0 2016-04-22 17:35 /foo/foo1
> -rw-r--r--   3 harsh supergroup          0 2016-04-22 17:35 /foo/foo1^M
> {code}
> (I've placed a ^M explicitly to indicate presence of the intentional hidden character)
> We should still add a simple test-case to cover this situation for future regressions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message