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:
parent
16441fbd68
commit
8f439786ad
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue