You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by vj...@apache.org on 2020/03/21 15:11:20 UTC

[hbase] branch branch-2.0 updated: HBASE-24019: Correct exception messages for table null and namespace unavailable. (#1312)

This is an automated email from the ASF dual-hosted git repository.

vjasani pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 1b574b4  HBASE-24019: Correct exception messages for table null and namespace unavailable. (#1312)
1b574b4 is described below

commit 1b574b455f42db38a6b516565fa180258c76ae72
Author: Mohammad Arshad <mo...@huawei.com>
AuthorDate: Sat Mar 21 20:30:09 2020 +0530

    HBASE-24019: Correct exception messages for table null and namespace unavailable. (#1312)
    
    Signed-off-by: Pankaj <pa...@apache.org>
    Signed-off-by: Jan Hentschel <ja...@ultratendency.com>
    Signed-off-by: Viraj Jasani <vj...@apache.org>
---
 .../main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminEndpoint.java | 2 +-
 .../main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminServer.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminEndpoint.java b/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminEndpoint.java
index 9f0a451..1d0f754 100644
--- a/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminEndpoint.java
+++ b/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminEndpoint.java
@@ -445,7 +445,7 @@ public class RSGroupAdminEndpoint implements MasterCoprocessor, MasterObserver {
                                  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");
+      throw new ConstraintException("Region server group " + group + " does not exist.");
     }
   }
 
diff --git a/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminServer.java b/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminServer.java
index c98ada2..8e7308a 100644
--- a/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminServer.java
+++ b/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminServer.java
@@ -373,7 +373,7 @@ public class RSGroupAdminServer implements RSGroupAdmin {
   @Override
   public void moveTables(Set<TableName> tables, String targetGroup) throws IOException {
     if (tables == null) {
-      throw new ConstraintException("The list of servers cannot be null.");
+      throw new ConstraintException("The list of tables cannot be null.");
     }
     if (tables.size() < 1) {
       LOG.debug("moveTables() passed an empty set. Ignoring.");