You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2025/04/12 14:39:34 UTC
(hbase) branch branch-2 updated: HBASE-29258 Change log level for 'Got brand-new ByteBuffDecompressor' in CodecPool to DEBUG instead of INFO (#6904)
This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new eb2ac43ce34 HBASE-29258 Change log level for 'Got brand-new ByteBuffDecompressor' in CodecPool to DEBUG instead of INFO (#6904)
eb2ac43ce34 is described below
commit eb2ac43ce34da85a05ed26a07aa80e3762b17531
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Sat Apr 12 21:39:15 2025 +0800
HBASE-29258 Change log level for 'Got brand-new ByteBuffDecompressor' in CodecPool to DEBUG instead of INFO (#6904)
Signed-off-by: Nihal Jain <ni...@apache.org>
(cherry picked from commit bc9c84f99199edd4a896e2566e88bc66a00e3c59)
---
.../java/org/apache/hadoop/hbase/io/compress/CodecPool.java | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/io/compress/CodecPool.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/io/compress/CodecPool.java
index 8096af05003..6c376fa5c3f 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/io/compress/CodecPool.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/io/compress/CodecPool.java
@@ -164,11 +164,9 @@ public class CodecPool {
Decompressor decompressor = borrow(DECOMPRESSOR_POOL, codec.getDecompressorType());
if (decompressor == null) {
decompressor = codec.createDecompressor();
- LOG.info("Got brand-new Decompressor [" + codec.getDefaultExtension() + "]");
+ LOG.debug("Got brand-new Decompressor [{}]", decompressor.getClass().getName());
} else {
- if (LOG.isDebugEnabled()) {
- LOG.debug("Got recycled Decompressor");
- }
+ LOG.debug("Got recycled Decompressor [{}]", decompressor.getClass().getName());
}
if (decompressor != null && !decompressor.getClass().isAnnotationPresent(DoNotPool.class)) {
updateLeaseCount(decompressorCounts, decompressor, 1);
@@ -181,11 +179,9 @@ public class CodecPool {
borrow(BYTE_BUFF_DECOMPRESSOR_POOL, codec.getByteBuffDecompressorType());
if (decompressor == null) {
decompressor = codec.createByteBuffDecompressor();
- LOG.info("Got brand-new ByteBuffDecompressor " + decompressor.getClass().getName());
+ LOG.debug("Got brand-new ByteBuffDecompressor [{}]", decompressor.getClass().getName());
} else {
- if (LOG.isDebugEnabled()) {
- LOG.debug("Got recycled ByteBuffDecompressor");
- }
+ LOG.debug("Got recycled ByteBuffDecompressor [{}]", decompressor.getClass().getName());
}
return decompressor;
}