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

This commit is contained in:
Kihwal Lee 2016-04-14 14:25:11 -05:00
parent 3150ae8108
commit 2c155afe27

View File

@ -811,7 +811,7 @@ protected void completeFile(ExtendedBlock last) throws IOException {
try { try {
if (retries == 0) { 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"
+ " does not have enough number of replicas."); + last + " does not have enough number of replicas.");
} }
retries--; retries--;
Thread.sleep(sleeptime); Thread.sleep(sleeptime);