You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Yongjun Zhang (JIRA)" <ji...@apache.org> on 2014/04/27 20:06:16 UTC

[jira] [Updated] (HADOOP-10543) RemoteException's unwrapRemoteException method failed for PathIOException

     [ https://issues.apache.org/jira/browse/HADOOP-10543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yongjun Zhang updated HADOOP-10543:
-----------------------------------

    Description: 
If the cause of a RemoteException is PathIOException, RemoteException's unwrapRemoteException methods would fail, because some PathIOException constructors initialize the cause to null, which makes Throwable to throw exception at
{code}
    public synchronized Throwable initCause(Throwable cause) {
        if (this.cause != this)
            throw new IllegalStateException("Can't overwrite cause");
{code} 


  was:
If the cause of a RemoteException is PathIOException, RemoteException's unwrapRemoteException methods would fail, because PathIOException overwrites the cause to null, which makes Throwable to throw exception at
{code}
    public synchronized Throwable initCause(Throwable cause) {
        if (this.cause != this)
            throw new IllegalStateException("Can't overwrite cause");
{code} 



> RemoteException's unwrapRemoteException method failed for PathIOException
> -------------------------------------------------------------------------
>
>                 Key: HADOOP-10543
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10543
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.4.0
>            Reporter: Yongjun Zhang
>            Assignee: Yongjun Zhang
>
> If the cause of a RemoteException is PathIOException, RemoteException's unwrapRemoteException methods would fail, because some PathIOException constructors initialize the cause to null, which makes Throwable to throw exception at
> {code}
>     public synchronized Throwable initCause(Throwable cause) {
>         if (this.cause != this)
>             throw new IllegalStateException("Can't overwrite cause");
> {code} 



--
This message was sent by Atlassian JIRA
(v6.2#6252)