You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zg...@apache.org on 2020/05/16 03:58:33 UTC
[hbase] branch branch-2.2 updated: HBASE-24165 maxPoolSize is
logged incorrectly in ByteBufferPool (addendum) (#1720)
This is an automated email from the ASF dual-hosted git repository.
zghao pushed a commit to branch branch-2.2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.2 by this push:
new c79a5d2 HBASE-24165 maxPoolSize is logged incorrectly in ByteBufferPool (addendum) (#1720)
c79a5d2 is described below
commit c79a5d27b60e22971c129bd649d2f04f419119f3
Author: Guanghao Zhang <zg...@apache.org>
AuthorDate: Sat May 16 11:58:22 2020 +0800
HBASE-24165 maxPoolSize is logged incorrectly in ByteBufferPool (addendum) (#1720)
---
.../src/main/java/org/apache/hadoop/hbase/io/ByteBufferPool.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/io/ByteBufferPool.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/io/ByteBufferPool.java
index abd088a..6fa1f1e 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/io/ByteBufferPool.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/io/ByteBufferPool.java
@@ -81,8 +81,8 @@ public class ByteBufferPool {
this.directByteBuffer = directByteBuffer;
// TODO can add initialPoolSize config also and make those many BBs ready for use.
LOG.info("Created with bufferSize={}, maxPoolSize={} and totalBufferSize={}",
- org.apache.hadoop.util.StringUtils.byteDesc(bufferSize), maxPoolSize,
- org.apache.hadoop.util.StringUtils.byteDesc((long) (bufferSize * maxPoolSize)));
+ org.apache.hadoop.util.StringUtils.byteDesc(bufferSize), maxPoolSize,
+ org.apache.hadoop.util.StringUtils.byteDesc(((long) bufferSize) * maxPoolSize));
this.count = new AtomicInteger(0);
}