[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to