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,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;
}
}
}