You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Nanda kumar (JIRA)" <ji...@apache.org> on 2017/10/25 02:15:00 UTC
[jira] [Commented] (HDFS-12705) WebHdfsFileSystem exceptions should
retain the caused by exception
[ https://issues.apache.org/jira/browse/HDFS-12705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16217994#comment-16217994 ]
Nanda kumar commented on HDFS-12705:
------------------------------------
Thanks [~hanishakoneru] for taking it up. Instead of setting cause as exception message we can call {{newIoe.initCause(ioe.getCause())}} to set the cause in newly created exception.
> WebHdfsFileSystem exceptions should retain the caused by exception
> ------------------------------------------------------------------
>
> Key: HDFS-12705
> URL: https://issues.apache.org/jira/browse/HDFS-12705
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: hdfs
> Affects Versions: 2.8.0
> Reporter: Daryn Sharp
> Assignee: Hanisha Koneru
> Attachments: HDFS-12705.001.patch
>
>
> {{WebHdfsFileSystem#runWithRetry}} uses reflection to prepend the remote host to the exception. While it preserves the original stacktrace, it omits the original cause which complicates debugging.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org