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 a4e0742fa9e..4a0d75e2604 100644 --- 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 @@ -965,7 +965,7 @@ public class DFSOutputStream extends FSOutputSummer } try { if (retries == 0) { - throw new IOException("Unable to close file because the last block" + throw new IOException("Unable to close file because the last block " + last + " does not have enough number of replicas."); } retries--;