From bc5ee80794d608e01fa4b51fc7d0ae2883f8d097 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) (cherry picked from commit 83e65c5fe84819b6c6da015b269fb4e46a88d105) --- .../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 28097ab7e0f..e2e5f39538b 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 abstract class DataTransferProtoUtil { } 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 2a5996662b0..0aac1a1449e 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -614,6 +614,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