From 31dc5c650e3fcfd5b581cbc1132b895d3eadaf49 Mon Sep 17 00:00:00 2001 From: Yongjun Zhang Date: Thu, 19 Nov 2015 14:20:33 -0800 Subject: [PATCH] HDFS-9439. Include status of closeAck into exception message in DataNode#run. (Xiao Chen via Yongjun Zhang) --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../java/org/apache/hadoop/hdfs/server/datanode/DataNode.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 04bb1e15fe3..22da5be6d3b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1660,6 +1660,9 @@ Release 2.8.0 - UNRELEASED HDFS-8056. Decommissioned dead nodes should continue to be counted as dead after NN restart. (mingma) + HDFS-9439. Include status of closeAck into exception message in DataNode#run. + (Xiao Chen via Yongjun Zhang) + OPTIMIZATIONS HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java index 29bcd795a52..3e758683c0d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java @@ -2241,7 +2241,7 @@ public class DataNode extends ReconfigurableBase + Arrays.asList(targets)); } else { throw new IOException("Bad connect ack, targets=" - + Arrays.asList(targets)); + + Arrays.asList(targets) + " status=" + closeAck.getStatus()); } } } else {