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

Improve AssignmentManager.handleRegion so that it can process certain ZK state in the case of RS offline

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.92.0, 0.94.0
    • None
    • None
    • Reviewed

    Description

      Currently AssignmentManager.handleRegion skips processing of ZK event change if the RS is offline. It relies on TimeoutMonitor and ServerShutdownHandler to process RIT.

      // Verify this is a known server
      if (!serverManager.isServerOnline(sn) &&
      !this.master.getServerName().equals(sn))

      { LOG.warn("Attempted to handle region transition for server but " + "server is not online: " + Bytes.toString(data.getRegionName())); return; }

      For certain states like OPENED, OPENING, FAILED_OPEN, CLOSED, it can continue the progressing even if the RS is offline.

      Attachments

        1. HBASE-4478_1.patch
          1 kB
          Ted Yu
        2. 4478-v2.txt
          2 kB
          Ted Yu

        Activity

          People

            ram_krish ramkrishna.s.vasudevan
            mingma Ming Ma
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: