You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "teamconfx (via GitHub)" <gi...@apache.org> on 2024/03/20 21:42:57 UTC
Re: [PR] HBASE-27990. BucketCache causes ArithmeticException due to improper blockSize value checking [hbase]
teamconfx commented on code in PR #5389:
URL: https://github.com/apache/hbase/pull/5389#discussion_r1532914393
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java:
##########
@@ -273,6 +273,7 @@ public BucketCache(String ioEngineName, long capacity, int blockSize, int[] buck
public BucketCache(String ioEngineName, long capacity, int blockSize, int[] bucketSizes,
int writerThreadNum, int writerQLen, String persistencePath, int ioErrorsTolerationDuration,
Configuration conf) throws IOException {
+ Preconditions.checkArgument(blockSize > 0, "BucketCache capacity can not be less than 0");
Review Comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hbase.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org