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

Region will be closed if user try to move it to an error destination server

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Incomplete
    • 0.98.4
    • None
    • master
    • None

    Description

      When moving region to a destination server by hbase shell command, such as:

      move '7dbe79eb3a77df085c8546b2ee540e7f', 'localhost,58220,1406806842691'
      

      user could pass an error destination server name, such as misspellinging the server name. Then, HMaster will close the region firstly and then assign the region to a random server when finding the destination server is not online, and the region can not serve before it is online again. Do we need to check the destination server name corresponds to an online server before closing region?(in HMaster.move(...))

      ...
      if (destServerName == null || destServerName.length == 0) {
            ....
          } else {
            dest = ServerName.valueOf(Bytes.toString(destServerName));
            if (dest.equals(regionState.getServerName())) {
               ...
            }
            // ### check the destination sever is online before closing region ###
          }
      ...
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            cuijianwei Jianwei Cui
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: