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

Tsz Wo Nicholas Sze commented on HDFS-8861:
-------------------------------------------

{code}
-      LOG.warn("Get corrupt file blocks returned error: " + e.getMessage());
{code}
This line won't print stack trace.

> Remove unnecessary log from method FSNamesystem.getCorruptFiles
> ---------------------------------------------------------------
>
>                 Key: HDFS-8861
>                 URL: https://issues.apache.org/jira/browse/HDFS-8861
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: HDFS
>            Reporter: Xiaobing Zhou
>            Assignee: Xiaobing Zhou
>         Attachments: HDFS-8861.1.patch
>
>
> The log in FSNamesystem.getCorruptFiles will print out whole stack trace. In 
> those cases where SuperuserPrivilege check and Operation check are not 
> satisfied in frequent calls of listCorruptFileBlocks, the stack traces will 
> make logs quite verbose, hard to understand and analyze it.



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

Reply via email to