[
https://issues.apache.org/jira/browse/HDFS-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13270924#comment-13270924
]
Tsz Wo (Nicholas), SZE commented on HDFS-3390:
----------------------------------------------
The double try-catch makes the code hard to read. How about either
- print the debug message in individual catch block, or
- set assign the exception to a local variable and the print the debug message
outside before the return?
> DFSAdmin should print full stack traces of errors when DEBUG logging is
> enabled
> -------------------------------------------------------------------------------
>
> Key: HDFS-3390
> URL: https://issues.apache.org/jira/browse/HDFS-3390
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: hdfs client
> Affects Versions: 2.0.0
> Reporter: Aaron T. Myers
> Assignee: Aaron T. Myers
> Priority: Minor
> Attachments: HDFS-3390.patch
>
>
> If an error is encountered when running an `hdfs dfsadmin ...' command, only
> the exception's message is output. It would be handy for debugging if the
> full stack trace of the exception were output when DEBUG logging is enabled.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira