Repository: hadoop Updated Branches: refs/heads/branch-3.0 c333ae8b3 -> b7739b468
HDFS-12388. A bad error message in DFSStripedOutputStream. Contributed by Huafeng Wang (cherry picked from commit 5dba54596a1587e0ba5f9f02f40483e597b0df64) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/b7739b46 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/b7739b46 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/b7739b46 Branch: refs/heads/branch-3.0 Commit: b7739b468edf253b73eb6057cd8f22758fa8d7e3 Parents: c333ae8 Author: Kai Zheng <[email protected]> Authored: Tue Sep 5 17:46:07 2017 +0800 Committer: Andrew Wang <[email protected]> Committed: Tue Sep 5 14:19:16 2017 -0700 ---------------------------------------------------------------------- .../main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/b7739b46/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java index 95f883c..408b325 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java @@ -390,7 +390,7 @@ public class DFSStripedOutputStream extends DFSOutputStream } if (failCount > (numAllBlocks - numDataBlocks)) { throw new IOException("Failed: the number of failed blocks = " - + failCount + " > the number of data blocks = " + + failCount + " > the number of parity blocks = " + (numAllBlocks - numDataBlocks)); } return newFailed; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
