You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2011/08/30 05:16:41 UTC

[jira] [Updated] (HBASE-4294) HLogSplitter sleeps with 1-second granularity

     [ https://issues.apache.org/jira/browse/HBASE-4294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Lipcon updated HBASE-4294:
-------------------------------

    Attachment: 0009-HBASE-4294.-Fix-1-second-sleep-in-HLogSplitter.patch

Trivial patch, verified on cluster that my log split time went from ~2000ms to 1300ms.

> HLogSplitter sleeps with 1-second granularity
> ---------------------------------------------
>
>                 Key: HBASE-4294
>                 URL: https://issues.apache.org/jira/browse/HBASE-4294
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.90.4
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>            Priority: Trivial
>             Fix For: 0.90.5
>
>         Attachments: 0009-HBASE-4294.-Fix-1-second-sleep-in-HLogSplitter.patch
>
>
> The HLogSplitter writer threads wait in 1-second intervals for data. When data arrives, notify() is called and they wake up. But when the main thread needs to notify the writers to shut down, it doesn't notify. Hence, the writers always wait up to a full extra second for each log split.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira