Skip to content

Commit

Permalink
HBASE-24165 maxPoolSize is logged incorrectly in ByteBufferPool
Browse files Browse the repository at this point in the history
  • Loading branch information
pankaj72981 committed Apr 11, 2020
1 parent 927a7cc commit 154fb82
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ public ByteBufferPool(int bufferSize, int maxPoolSize, boolean directByteBuffer)
this.maxPoolSize = maxPoolSize;
this.directByteBuffer = directByteBuffer;
// TODO can add initialPoolSize config also and make those many BBs ready for use.
LOG.info("Created with bufferSize={} and maxPoolSize={}",
org.apache.hadoop.util.StringUtils.byteDesc(bufferSize), maxPoolSize);
LOG.info("Created with bufferSize={}, maxPoolSize={} and totalBufferSize={}",
org.apache.hadoop.util.StringUtils.byteDesc(bufferSize), maxPoolSize,
org.apache.hadoop.util.StringUtils.byteDesc(bufferSize * maxPoolSize));
this.count = new AtomicInteger(0);
}

Expand Down

0 comments on commit 154fb82

Please sign in to comment.