You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Yu Li (JIRA)" <ji...@apache.org> on 2016/02/25 07:18:18 UTC
[jira] [Created] (HBASE-15324) Jitter may cause desiredMaxFileSize
overflow in ConstantSizeRegionSplitPolicy and trigger unexpected split
Yu Li created HBASE-15324:
-----------------------------
Summary: Jitter may cause desiredMaxFileSize overflow in ConstantSizeRegionSplitPolicy and trigger unexpected split
Key: HBASE-15324
URL: https://issues.apache.org/jira/browse/HBASE-15324
Project: HBase
Issue Type: Bug
Affects Versions: 1.1.3, 2.0.0
Reporter: Yu Li
Assignee: Yu Li
We introduce jitter for region split decision in HBASE-13412, but the following line in {{ConstantSizeRegionSplitPolicy}} may cause long value overflow if MAX_FILESIZE is specified to Long.MAX_VALUE:
{code}
this.desiredMaxFileSize += (long)(desiredMaxFileSize * (RANDOM.nextFloat() - 0.5D) * jitter);
{code}
In our case we specify MAX_FILESIZE to Long.MAX_VALUE to prevent target region to split.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)