You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ki...@apache.org on 2016/04/14 21:25:53 UTC
hadoop git commit: HDFS-10292. Add block id when client got Unable to
close file exception. Contributed by Brahma Reddy Battula.
Repository: hadoop
Updated Branches:
refs/heads/trunk 3150ae810 -> 2c155afe2
HDFS-10292. Add block id when client got Unable to close file exception. Contributed by Brahma Reddy Battula.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/2c155afe
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/2c155afe
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/2c155afe
Branch: refs/heads/trunk
Commit: 2c155afe2736a5571bbb3bdfb2fe6f9709227229
Parents: 3150ae8
Author: Kihwal Lee <ki...@apache.org>
Authored: Thu Apr 14 14:25:11 2016 -0500
Committer: Kihwal Lee <ki...@apache.org>
Committed: Thu Apr 14 14:25:11 2016 -0500
----------------------------------------------------------------------
.../src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/2c155afe/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java
index dc88e08..0f82799 100755
--- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java
+++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java
@@ -811,7 +811,7 @@ public class DFSOutputStream extends FSOutputSummer
try {
if (retries == 0) {
throw new IOException("Unable to close file because the last block"
- + " does not have enough number of replicas.");
+ + last + " does not have enough number of replicas.");
}
retries--;
Thread.sleep(sleeptime);