Description
Exception message for following two scenarios should be corrected.
1. Change message to "The list of tables cannot be null." in below code
@Override public void moveTables(Set<TableName> tables, String targetGroup) throws IOException { if (tables == null) { throw new ConstraintException("The list of servers cannot be null."); }
2. Change the message to "Region server group "group" does not exist" in below code.
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"); } }
Attachments
Issue Links
- links to