HBASE-24019: Correct exception messages for table null and namespace unavailable. (#1312)

Signed-off-by: Pankaj <pankajkumar@apache.org>
Signed-off-by: Jan Hentschel <jan.hentschel@ultratendency.com>
Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
Mohammad Arshad 2020-03-21 20:30:09 +05:30 committed by Viraj Jasani
parent 16441fbd68
commit 8f439786ad
No known key found for this signature in database
GPG Key ID: E906DFF511D3E5DB
2 changed files with 2 additions and 2 deletions

View File

@ -488,7 +488,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.");
}
}

View File

@ -357,7 +357,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.");