hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-15324) Jitter may cause desiredMaxFileSize overflow in ConstantSizeRegionSplitPolicy and trigger unexpected split
Date Thu, 31 Mar 2016 01:56:25 GMT

    [ https://issues.apache.org/jira/browse/HBASE-15324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15219195#comment-15219195
] 

Hudson commented on HBASE-15324:
--------------------------------

SUCCESS: Integrated in HBase-1.4 #63 (See [https://builds.apache.org/job/HBase-1.4/63/])
HBASE-15324 Jitter may cause desiredMaxFileSize overflow in (stack: rev 407e644607eba96132d9fa27857000ee9cb1dc20)
* hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ConstantSizeRegionSplitPolicy.java
* hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionSplitPolicy.java


> 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: 2.0.0, 1.1.3
>            Reporter: Yu Li
>            Assignee: Yu Li
>             Fix For: 2.0.0, 1.3.0, 1.4.0
>
>         Attachments: HBASE-15324.patch, HBASE-15324_v2.patch, HBASE-15324_v3.patch, HBASE-15324_v3.patch
>
>
> 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)

Mime
View raw message