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:
parent
019ca8f7c1
commit
7dd8798933
|
@ -815,7 +815,7 @@ public class DFSOutputStream extends FSOutputSummer
|
||||||
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);
|
||||||
|
|
Loading…
Reference in New Issue