hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse Yates (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-7725) Add ability to block on a compaction request for a region
Date Thu, 31 Jan 2013 03:57:17 GMT

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

Jesse Yates updated HBASE-7725:

    Attachment: example.java

Attaching simple example file of using the finished latch on a compactionRequest. Essentially,
I want to trigger a compaction and make sure I know when it finishes because I want to setup
a special compaction policy, but I don't know when the compaction will run or which one is
running or if the one I requested is done yet.

I had considered making "compactRegionAndBlockUntilDone" a method on HRegionServer that we
could just call, but that meant updating RegionServerServices and slightly reworking the calls
there that request compactions to just drop the return values (keeping the async nature).
So we could move it in there, but since its a small case, I don't know if its worth it yet
> Add ability to block on a compaction request for a region
> ---------------------------------------------------------
>                 Key: HBASE-7725
>                 URL: https://issues.apache.org/jira/browse/HBASE-7725
>             Project: HBase
>          Issue Type: Bug
>          Components: Compaction, Coprocessors, regionserver
>            Reporter: Jesse Yates
>            Assignee: Jesse Yates
>             Fix For: 0.96.0, 0.94.5
>         Attachments: example.java, hbase-7725_0.94-v0.patch
> You can request that a compaction be started, but you can't be sure when that compaction
request completes. This is a simple update to the CompactionRequest interface and the compact-split
thread on the RS that doesn't actually impact the RS exposed interface.
> This is particularly useful for CPs so they can control starting/running a compaction.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message