From 321a80c759e887f52bb4f40c49328527f04560a1 Mon Sep 17 00:00:00 2001 From: Jing Zhao Date: Sun, 28 Feb 2016 15:00:27 -0800 Subject: [PATCH] HDFS-9867. Missing block exception should carry locatedBlocks information. Contributed by Mingliang Liu. --- .../java/org/apache/hadoop/hdfs/DFSStripedInputStream.java | 3 ++- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedInputStream.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedInputStream.java index d4174d840f4..f6547f36fcc 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedInputStream.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedInputStream.java @@ -605,7 +605,8 @@ public class DFSStripedInputStream extends DFSInputStream { if (alignedStripe.missingChunksNum > parityBlkNum) { clearFutures(futures.keySet()); throw new IOException(alignedStripe.missingChunksNum - + " missing blocks, the stripe is: " + alignedStripe); + + " missing blocks, the stripe is: " + alignedStripe + + "; locatedBlocks is: " + locatedBlocks); } } diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 651f0a1e813..78d27215179 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -449,6 +449,9 @@ Trunk (Unreleased) HDFS-9866. BlockManager#chooseExcessReplicasStriped may weaken rack fault tolerance. (jing9) + HDFS-9867. Missing block exception should carry locatedBlocks information. + (Mingliang Liu via jing9) + BREAKDOWN OF HDFS-7285 SUBTASKS AND RELATED JIRAS HDFS-7347. Configurable erasure coding policy for individual files and