hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhangduo (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-13528) A bug on selecting compaction pool
Date Wed, 22 Apr 2015 03:08:58 GMT

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

zhangduo commented on HBASE-13528:
----------------------------------

This will cause NPE...compaction will be null if selectNow == false.
Try this?
{code}
    ThreadPoolExecutor pool = (selectNow && s.throttleCompaction(compaction.getRequest().getSize()))
      ? largeCompactions : smallCompactions;
{code}

> A bug on selecting compaction pool
> ----------------------------------
>
>                 Key: HBASE-13528
>                 URL: https://issues.apache.org/jira/browse/HBASE-13528
>             Project: HBase
>          Issue Type: Bug
>          Components: Compaction
>    Affects Versions: 0.98.12
>            Reporter: Shuaifeng Zhou
>            Assignee: Shuaifeng Zhou
>            Priority: Minor
>             Fix For: 1.0.1, 0.98.13
>
>         Attachments: HBASE-13528-0.98.patch, HBASE-13528-1.0.patch, HBASE-13528-master.patch
>
>
> When the selectNow == true, in requestCompactionInternal, the compaction pool section
is incorrect.
> as discussed in:
> http://mail-archives.apache.org/mod_mbox/hbase-dev/201504.mbox/%3CCAAAYAnNC06E-pUG_Fhu9-7x5z--tm_apnFqpuqfn%3DLdNESE3mA%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message