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

Mingliang Liu commented on HDFS-10892:
--------------------------------------

Thank you [~aw] for your explanation. That is very helpful to understand why 
the locale was not enforced to UTF-8 in test.

However, I did not find easy way to set the LANG=UTF-8 encoding in Java (kindly 
let me know if there is). The {{Locale.setDefault()}} seems not working here 
either. Per-offline discussion with [~jnp], we decide not to unit test UTF-8 by 
now. Mixing locale and file content encoding is better tested in end-to-end 
system tests.

> Add unit tests for HDFS command 'dfs -tail' and 'dfs -stat'
> -----------------------------------------------------------
>
>                 Key: HDFS-10892
>                 URL: https://issues.apache.org/jira/browse/HDFS-10892
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: fs, shell, test
>            Reporter: Mingliang Liu
>            Assignee: Mingliang Liu
>         Attachments: HDFS-10892.000.patch, HDFS-10892.001.patch, 
> HDFS-10892.002.patch, HDFS-10892.003.patch, HDFS-10892.004.patch, 
> HDFS-10892.005.patch
>
>
> I did not find unit test in {{trunk}} code for following cases:
> - HDFS command {{dfs -tail}}
> - HDFS command {{dfs -stat}}
> I think it still merits to have one though the commands have served us for 
> years.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to