You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "kevin su (JIRA)" <ji...@apache.org> on 2019/03/26 20:39:00 UTC

[jira] [Commented] (HBASE-22108) Avoid passing null in Admin methods

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

kevin su commented on HBASE-22108:
----------------------------------

maybe we could add moveRandom(byte[] encodedRegionName) method in Admin
btw, there is split(TableName tableName) method, user don't need to pass null.

> Avoid passing null in Admin methods
> -----------------------------------
>
>                 Key: HBASE-22108
>                 URL: https://issues.apache.org/jira/browse/HBASE-22108
>             Project: HBase
>          Issue Type: Task
>          Components: Admin
>            Reporter: Duo Zhang
>            Priority: Major
>
> For some methods we must pass null if we want specific behaviors, for example, move region to a random server, split region without providing an explicit split point, etc.
> We should provide methods without some parameters so user do not need to pass null.
> So in the future users do not need to guess whether a method accept null parameters, the answer is always no.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)