[ https://issues.apache.org/jira/browse/HDFS-13435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16435849#comment-16435849 ]
Wei Yan commented on HDFS-13435: -------------------------------- Thanks [~linyiqun] for the patch... finally we have started to fix typoes :D Mind to also fix these two in RouterRpcClient.java? Line 745 which misses one {}. {code:java} LOG.error("Unexpected exception {} proxying {} to {}", e.getClass(), m.getName(), ns, e);{code} Line 1070 where method–> method.getMethodName() {code:java} String msg = "Invocation to \"" + loc + "\" for \"" + method + "\" timed out"; LOG.error(msg);{code} > RBF: Fix wrong error loggings > ----------------------------- > > Key: HDFS-13435 > URL: https://issues.apache.org/jira/browse/HDFS-13435 > Project: Hadoop HDFS > Issue Type: Sub-task > Affects Versions: 3.0.1 > Reporter: Yiqun Lin > Assignee: Yiqun Lin > Priority: Major > Attachments: HDFS-13435.001.patch > > > There are many places that using {{Logger.error(String format, Object... > arguments)}} incorrectly. > A example: > {code:java} > LOG.error("Cannot remove {}", path, e); > {code} > The exception passed here is no meaning and won't be printed. Actually it > should be update to > {code:java} > LOG.error("Cannot remove {}: {}.", path, e.getMessage()); > {code} > or > {code:java} > LOG.error("Cannot remove " + path, e)); > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org