HDFS-9532. Detailed exception info is lost in reportTo methods of ErrorReportAction and ReportBadBlockAction. (Yongjun Zhang)
(cherry picked from commit f5a911452f
)
Conflicts:
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
This commit is contained in:
parent
605914caac
commit
e00888d5cb
|
@ -871,6 +871,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
HDFS-9472. concat() API does not give proper exception messages on ./reserved
|
HDFS-9472. concat() API does not give proper exception messages on ./reserved
|
||||||
relative path (Rakesh R via umamahesh)
|
relative path (Rakesh R via umamahesh)
|
||||||
|
|
||||||
|
HDFS-9532. Detailed exception info is lost in reportTo methods of
|
||||||
|
ErrorReportAction and ReportBadBlockAction. (Yongjun Zhang)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than
|
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than
|
||||||
|
|
|
@ -30,4 +30,9 @@ public class BPServiceActorActionException extends IOException {
|
||||||
public BPServiceActorActionException(String message) {
|
public BPServiceActorActionException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public BPServiceActorActionException(String message, Throwable cause) {
|
||||||
|
super(message, cause);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class ErrorReportAction implements BPServiceActorAction {
|
||||||
+ "errorMessage: " + errorMessage + " errorCode: " + errorCode, re);
|
+ "errorMessage: " + errorMessage + " errorCode: " + errorCode, re);
|
||||||
} catch(IOException e) {
|
} catch(IOException e) {
|
||||||
throw new BPServiceActorActionException("Error reporting "
|
throw new BPServiceActorActionException("Error reporting "
|
||||||
+ "an error to namenode: ");
|
+ "an error to namenode.", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ public class ReportBadBlockAction implements BPServiceActorAction {
|
||||||
+ "block: " + block , re);
|
+ "block: " + block , re);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new BPServiceActorActionException("Failed to report bad block "
|
throw new BPServiceActorActionException("Failed to report bad block "
|
||||||
+ block + " to namenode: ");
|
+ block + " to namenode.", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue