From fc0443135f04df25279235ba091ab34ccee4cfe2 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Sat, 23 Mar 2013 21:05:05 +0000 Subject: [PATCH] HBASE-8178 IPCUtil produces a LOT of WARN log spew git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1460230 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/hadoop/hbase/ipc/IPCUtil.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/IPCUtil.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/IPCUtil.java index b7933370fc0..a2c1d62aae8 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/IPCUtil.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/IPCUtil.java @@ -102,9 +102,11 @@ class IPCUtil { os.close(); if (poolCompressor != null) CodecPool.returnCompressor(poolCompressor); } - if (this.cellBlockBuildingInitialBufferSize < baos.size()) { - LOG.warn("Buffer grew from " + this.cellBlockBuildingInitialBufferSize + - " to " + baos.size()); + if (LOG.isTraceEnabled()) {} + if (this.cellBlockBuildingInitialBufferSize < baos.size()) { + LOG.trace("Buffer grew from " + this.cellBlockBuildingInitialBufferSize + + " to " + baos.size()); + } } return baos.getByteBuffer(); } @@ -243,4 +245,4 @@ class IPCUtil { Preconditions.checkArgument(totalSize < Integer.MAX_VALUE); return totalSize; } -} \ No newline at end of file +}