From 25951255ce9a1ce3b58fd8122cd37e895b8f80d6 Mon Sep 17 00:00:00 2001 From: avijayanhwx <14299376+avijayanhwx@users.noreply.github.com> Date: Thu, 9 May 2019 03:08:49 -0700 Subject: [PATCH] HDDS-1500. Allocate block failures in client should print exception trace. Contributed by Aravindan Vijayan (#801). --- .../hadoop/ozone/client/io/BlockOutputStreamEntryPool.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 7a8af65b859..e707e4fea07 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 @@ public class BlockOutputStreamEntryPool { 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 class BlockOutputStreamEntryPool { boolean isEmpty() { return streamEntries.isEmpty(); } -} \ No newline at end of file +}