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

Xiang Li updated HBASE-22119:
-----------------------------
    Description: 
There are several places to check if a group is the default group or not, the 
input could be a string or a RSGroupInfo. It is better to provide official 
functions in RSGroupInfo to tell if a group is the default group, so as to
* Simply the code
* Make it safe. There is no null check like 
{code}
if (!group.getName().equals(RSGroupInfo.DEFAULT_GROUP))
{code}

  was:There are several places to check if a group is the default group or not, 
the input could be a string or a RSGroupInfo. It is better to provide official 
functions in RSGroupInfo to tell if a group is 


> Provide functions in RSGroupInfo to check if a group is the default group
> -------------------------------------------------------------------------
>
>                 Key: HBASE-22119
>                 URL: https://issues.apache.org/jira/browse/HBASE-22119
>             Project: HBase
>          Issue Type: Improvement
>          Components: rsgroup
>            Reporter: Xiang Li
>            Assignee: Xiang Li
>            Priority: Minor
>
> There are several places to check if a group is the default group or not, the 
> input could be a string or a RSGroupInfo. It is better to provide official 
> functions in RSGroupInfo to tell if a group is the default group, so as to
> * Simply the code
> * Make it safe. There is no null check like 
> {code}
> if (!group.getName().equals(RSGroupInfo.DEFAULT_GROUP))
> {code}



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

Reply via email to