HDFS-7199. DFSOutputStream should not silently drop data if DataStreamer crashes with an unchecked exception (rushabhs via cmccabe)

(cherry picked from commit 56257fab1d)
(cherry picked from commit 6f7ce842c0)
This commit is contained in:
Colin Patrick Mccabe 2014-11-05 10:51:49 -08:00
parent 0d573cc4c0
commit 8702cc2360
2 changed files with 5 additions and 0 deletions

View File

@ -890,6 +890,9 @@ Release 2.6.0 - UNRELEASED
HDFS-7305. NPE seen in wbhdfs FS while running SLive. (jing9)
HDFS-7199. DFSOutputStream should not silently drop data if DataStreamer
crashes with an unchecked exception (rushabhs via cmccabe)
BREAKDOWN OF HDFS-6584 ARCHIVAL STORAGE
HDFS-6677. Change INodeFile and FSImage to support storage policy ID.

View File

@ -692,6 +692,8 @@ public class DFSOutputStream extends FSOutputSummer
}
if (e instanceof IOException) {
setLastException((IOException)e);
} else {
setLastException(new IOException("DataStreamer Exception: ",e));
}
hasError = true;
if (errorIndex == -1 && restartingNodeIndex == -1) {