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

(cherry picked from commit 2c155afe27)
This commit is contained in:
Kihwal Lee 2016-04-14 14:26:23 -05:00
parent ece01478c5
commit 0bc8c327e9
1 changed files with 1 additions and 1 deletions

View File

@ -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);