hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jitendra Nath Pandey (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-1977) Stop using StringUtils.stringifyException()
Date Tue, 12 Jul 2011 01:42:59 GMT

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

Jitendra Nath Pandey commented on HDFS-1977:

 StringUtils is still being imported in many files, although not used anymore. For example
in DFSInputStream.java, NameNodeConnector.java and in a few others. 
Otherwise, the patch looks good to me.

> Stop using StringUtils.stringifyException()
> -------------------------------------------
>                 Key: HDFS-1977
>                 URL: https://issues.apache.org/jira/browse/HDFS-1977
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Joey Echeverria
>            Assignee: Bharath Mundlapudi
>            Priority: Minor
>         Attachments: HDFS-1977-1.patch, HDFS-1977-2.patch, HDFS-1977-3.patch
> The old version of the logging APIs didn't support logging stack traces by passing exceptions
to the logging methods (e.g. Log.error()). A number of log statements make use of StringUtils.stringifyException()
to get around the old behavior. It would be nice if this could get cleaned up to make use
of the the logger's stack trace printing. This also gives users more control since you can
configure how the stack traces are written to the logs.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message