Skip to content

Commit 2595125

Browse files
avijayanhwxmukul1987
authored andcommitted
HDDS-1500. Allocate block failures in client should print exception trace. Contributed by Aravindan Vijayan (#801).
1 parent f257497 commit 2595125

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/io/BlockOutputStreamEntryPool.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ BlockOutputStreamEntry allocateBlockIfNeeded() throws IOException {
297297
succeededAllocates += 1;
298298
} catch (IOException ioe) {
299299
LOG.error("Try to allocate more blocks for write failed, already "
300-
+ "allocated " + succeededAllocates + " blocks for this write.");
300+
+ "allocated {} blocks for this write.", succeededAllocates, ioe);
301301
throw ioe;
302302
}
303303
}
@@ -341,4 +341,4 @@ public long getStreamBufferMaxSize() {
341341
boolean isEmpty() {
342342
return streamEntries.isEmpty();
343343
}
344-
}
344+
}

0 commit comments

Comments
 (0)