hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerry He (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-14309) Allow load balancer to operate when there is region in transition by adding force flag
Date Wed, 26 Aug 2015 02:42:45 GMT

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

Jerry He commented on HBASE-14309:
----------------------------------

{code}
+  @Override
+  public boolean balancer(boolean force) throws IOException {
+    return executeCallable(new MasterCallable<Boolean>(getConnection()) {
+      @Override
+      public Boolean call(int callTimeout) throws ServiceException {
+        return master.balance(null, RequestConverter.buildBalanceRequest(false)).getBalancerRan();
       }
{code}

Should be "buildBalanceRequest(force)".

{noformat}
+import org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BalanceRequest;
{noformat}

Not used in this file.

{noformat}
+  hbase> balance true
+  hbase> balance false
{noformat}

true or false as argument seems a little odd.  May just 'force' as the optional argument?

> Allow load balancer to operate when there is region in transition by adding force flag
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-14309
>                 URL: https://issues.apache.org/jira/browse/HBASE-14309
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>         Attachments: 14309-v1.txt
>
>
> This issue adds boolean parameter, force, to 'balancer' command so that admin can force
region balancing even when there is region in transition - assuming RIT being transient.
> This enhancement was requested by some customer.



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

Mime
View raw message