hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duo Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-18453) CompactionRequest should not be exposed to user directly
Date Sun, 10 Sep 2017 13:52:02 GMT

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

Duo Zhang updated HBASE-18453:
------------------------------
    Attachment: HBASE-18453.patch

A big fat patch...

Add a CompactionLifeCycle to track the execution of compaction. See TestCompaction.testTrackingCompactionRequest
to see how to use it.

Remove CompactionRequester, and add a requestCompaction method to Region to support requesting
a compaction on a region. The implementation of the new methods maybe a little dangerous as
I just cast the rsServices to HRegionServer.

And in HRegion, change the declaration of stores from Store to HStore. This is what I said
use implementation classes in our own code. With some generic tricks we can avoid casting
for most cases. The follow on work is to remove the methods in Store interface which we do
not want to expose to CP users as we just use HStore in our own code.

> CompactionRequest should not be exposed to user directly
> --------------------------------------------------------
>
>                 Key: HBASE-18453
>                 URL: https://issues.apache.org/jira/browse/HBASE-18453
>             Project: HBase
>          Issue Type: Sub-task
>          Components: Coprocessors
>            Reporter: Duo Zhang
>            Assignee: Duo Zhang
>             Fix For: 2.0.0
>
>         Attachments: HBASE-18453.patch
>
>
> It is an implementation class. And we need to find another to let user know the compaction
start and end.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message