hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-7340) Allow user-specified actions following region movement
Date Wed, 12 Dec 2012 23:29:21 GMT

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

Ted Yu commented on HBASE-7340:

In HMaster.moveRegion(), we already have:
      if (this.cpHost != null) {
        this.cpHost.postMove(hri, rp.getSource(), rp.getDestination());
Meaning, user can register master coprocessor which would receive region movement notification.

The assignmentManager.balance(plan) call in HMaster.balance() doesn't send out such notification.
I think we can either add notification per region moved, or enhance the following hook (at
line 1335) with list of regions moved:
Comments are welcome.
> Allow user-specified actions following region movement
> ------------------------------------------------------
>                 Key: HBASE-7340
>                 URL: https://issues.apache.org/jira/browse/HBASE-7340
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
> Sometimes user performs compaction after a region is moved (by balancer). We should provide
'hook' which lets user specify what follow-on actions to take after region movement.
> See discussion on user mailing list under the thread 'How to know it's time for a major
compaction?' for background information: http://search-hadoop.com/m/BDx4S1jMjF92&subj=How+to+know+it+s+time+for+a+major+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