From 5dba54596a1587e0ba5f9f02f40483e597b0df64 Mon Sep 17 00:00:00 2001 From: Kai Zheng Date: Tue, 5 Sep 2017 17:46:07 +0800 Subject: [PATCH] HDFS-12388. A bad error message in DFSStripedOutputStream. Contributed by Huafeng Wang --- .../java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 842f23b490..d5206d1c09 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 @@ private Set checkStreamers() throws IOException { } 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;