Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-24019

Correct exception messages for table null and namespace unavailable.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.0, 2.1.10, 2.2.5
    • None
    • None
    • Reviewed

    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

          Activity

            People

              arshad.mohammad Mohammad Arshad
              arshad.mohammad Mohammad Arshad
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: