HDFS-9867. Missing block exception should carry locatedBlocks information. Contributed by Mingliang Liu.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/321a80c7 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/321a80c7 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/321a80c7 Branch: refs/heads/HDFS-1312 Commit: 321a80c759e887f52bb4f40c49328527f04560a1 Parents: 408f2c8 Author: Jing Zhao <[email protected]> Authored: Sun Feb 28 15:00:27 2016 -0800 Committer: Jing Zhao <[email protected]> Committed: Sun Feb 28 15:00:27 2016 -0800 ---------------------------------------------------------------------- .../main/java/org/apache/hadoop/hdfs/DFSStripedInputStream.java | 3 ++- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/321a80c7/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedInputStream.java ---------------------------------------------------------------------- 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 d4174d8..f6547f3 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); } } http://git-wip-us.apache.org/repos/asf/hadoop/blob/321a80c7/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 651f0a1..78d2721 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
