hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From x...@apache.org
Subject [1/2] hadoop git commit: HDFS-12933. Improve logging when DFSStripedOutputStream failed to write some blocks. Contributed by chencan.
Date Wed, 07 Feb 2018 06:57:18 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-3.0 d436c403b -> 49de91446


HDFS-12933. Improve logging when DFSStripedOutputStream failed to write some blocks. Contributed
by chencan.

(cherry picked from commit e5c2fdddd69ceca21d641de56904648acedc74bf)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/49de9144
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/49de9144
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/49de9144

Branch: refs/heads/branch-3.0
Commit: 49de91446f2a0d0534cea002faab2558d56ee5d8
Parents: 29a3b64
Author: Xiao Chen <xiao@apache.org>
Authored: Tue Feb 6 22:54:17 2018 -0800
Committer: Xiao Chen <xiao@apache.org>
Committed: Tue Feb 6 22:57:15 2018 -0800

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/49de9144/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 39717ef..ed875bb 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
@@ -1288,8 +1288,8 @@ public class DFSStripedOutputStream extends DFSOutputStream
       int bgIndex = entry.getKey();
       int corruptBlockCount = entry.getValue();
       StringBuilder sb = new StringBuilder();
-      sb.append("Block group <").append(bgIndex).append("> has ")
-          .append(corruptBlockCount).append(" corrupt blocks.");
+      sb.append("Block group <").append(bgIndex).append("> failed to write ")
+          .append(corruptBlockCount).append(" blocks.");
       if (corruptBlockCount == numAllBlocks - numDataBlocks) {
         sb.append(" It's at high risk of losing data.");
       }


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message