diff --git a/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/io/BlockOutputStreamEntryPool.java b/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/io/BlockOutputStreamEntryPool.java index 7a8af65b85..e707e4fea0 100644 --- a/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/io/BlockOutputStreamEntryPool.java +++ b/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/io/BlockOutputStreamEntryPool.java @@ -297,7 +297,7 @@ BlockOutputStreamEntry allocateBlockIfNeeded() throws IOException { succeededAllocates += 1; } catch (IOException ioe) { LOG.error("Try to allocate more blocks for write failed, already " - + "allocated " + succeededAllocates + " blocks for this write."); + + "allocated {} blocks for this write.", succeededAllocates, ioe); throw ioe; } } @@ -341,4 +341,4 @@ public long getStreamBufferMaxSize() { boolean isEmpty() { return streamEntries.isEmpty(); } -} \ No newline at end of file +}