From 83e65c5fe84819b6c6da015b269fb4e46a88d105 Mon Sep 17 00:00:00 2001 From: Yongjun Zhang Date: Thu, 24 Sep 2015 22:13:14 -0700 Subject: [PATCH] HDFS-5795. RemoteBlockReader2#checkSuccess() shoud print error status. (Xiao Chen via Yongjun Zhang) --- .../hdfs/protocol/datatransfer/DataTransferProtoUtil.java | 1 + hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ 2 files changed, 4 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/DataTransferProtoUtil.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/DataTransferProtoUtil.java index 28097ab7e0..e2e5f39538 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/DataTransferProtoUtil.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/DataTransferProtoUtil.java @@ -137,6 +137,7 @@ public static void checkBlockOpStatus( } else { throw new IOException( "Got error" + + ", status=" + response.getStatus().name() + ", status message " + response.getMessage() + ", " + logInfo ); diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index afe677ed68..8c26a1d339 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -962,6 +962,9 @@ Release 2.8.0 - UNRELEASED HDFS-9134. Move LEASE_{SOFTLIMIT,HARDLIMIT}_PERIOD constants from HdfsServerConstants to HdfsConstants. (Mingliang Liu via wheat9) + HDFS-5795. RemoteBlockReader2#checkSuccess() shoud print error status. + (Xiao Chen via Yongjun Zhang) + OPTIMIZATIONS HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than