Explorar o código

HDFS-10292. Add block id when client got Unable to close file exception. Contributed by Brahma Reddy Battula.

(cherry picked from commit 2c155afe2736a5571bbb3bdfb2fe6f9709227229)
Kihwal Lee %!s(int64=9) %!d(string=hai) anos
pai
achega
0bc8c327e9

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java

@@ -815,7 +815,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);