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
This commit is contained in:
Michael Stack 2013-03-23 21:05:05 +00:00
parent 187654d17d
commit fc0443135f
1 changed files with 6 additions and 4 deletions

View File

@ -102,10 +102,12 @@ class IPCUtil {
os.close(); os.close();
if (poolCompressor != null) CodecPool.returnCompressor(poolCompressor); if (poolCompressor != null) CodecPool.returnCompressor(poolCompressor);
} }
if (LOG.isTraceEnabled()) {}
if (this.cellBlockBuildingInitialBufferSize < baos.size()) { if (this.cellBlockBuildingInitialBufferSize < baos.size()) {
LOG.warn("Buffer grew from " + this.cellBlockBuildingInitialBufferSize + LOG.trace("Buffer grew from " + this.cellBlockBuildingInitialBufferSize +
" to " + baos.size()); " to " + baos.size());
} }
}
return baos.getByteBuffer(); return baos.getByteBuffer();
} }