hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jagadesh Kiran N (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9675) BlockSender incorrectly output error logs with non-English locale
Date Sat, 24 Dec 2016 06:59:58 GMT

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

Jagadesh Kiran N commented on HDFS-9675:
----------------------------------------

[~ajisakaa] ,{code} String ioem = e.getLocalizedMessage() {code} should workout for ioem.startWith
, Please review 

> BlockSender incorrectly output error logs with non-English locale
> -----------------------------------------------------------------
>
>                 Key: HDFS-9675
>                 URL: https://issues.apache.org/jira/browse/HDFS-9675
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: datanode
>            Reporter: Akira Ajisaka
>            Assignee: Jagadesh Kiran N
>              Labels: i18n
>
> If the locale is non-English, the following code does not work.
> {code:title=BlockSender.java}
>         String ioem = e.getMessage();
>         if (!ioem.startsWith("Broken pipe") && !ioem.startsWith("Connection reset"))
{
>           LOG.error("BlockSender.sendChunks() exception: ", e);
>         }
> {code}



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

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


Mime
View raw message