You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Nick Dimiduk (Jira)" <ji...@apache.org> on 2020/07/14 21:33:00 UTC

[jira] [Updated] (HBASE-24019) Correct exception messages for table null and namespace unavailable.

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

Nick Dimiduk updated HBASE-24019:
---------------------------------
    Fix Version/s:     (was: 2.4.0)

> Correct exception messages for table null and namespace unavailable.
> --------------------------------------------------------------------
>
>                 Key: HBASE-24019
>                 URL: https://issues.apache.org/jira/browse/HBASE-24019
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Mohammad Arshad
>            Assignee: Mohammad Arshad
>            Priority: Minor
>             Fix For: 2.3.0, 2.1.10, 2.2.5
>
>
> Exception message for following two scenarios should be corrected. 
> 1. Change message to  "The list of tables cannot be null." in below code
> {code:java}
> @Override
>   public void moveTables(Set<TableName> tables, String targetGroup) throws IOException {
>     if (tables == null) {
>       throw new ConstraintException("The list of servers cannot be null.");
>     }
> {code}
> 2. Change the message to "Region server group "+group+" does not exist" in below code.
> {code:java}
> public void preCreateNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx,
>                                  NamespaceDescriptor ns) throws IOException {
>     String group = ns.getConfigurationValue(RSGroupInfo.NAMESPACE_DESC_PROP_GROUP);
>     if(group != null && groupAdminServer.getRSGroupInfo(group) == null) {
>       throw new ConstraintException("Region server group "+group+" does not exit");
>     }
>   }
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)