HBase
  1. HBase
  2. HBASE-5927

SSH and DisableTableHandler happening together does not clear the znode of the region and RIT map.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.92.1, 0.94.1, 0.95.2
    • Fix Version/s: 0.94.1, 0.95.0
    • Component/s: master
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      A possible exception: If the related regionserver was just killed(But HMaster has not perceived that), then we will get a local exception "Connection reset by peer". If this region belongs to a disabling table. what will happen?

      ServerShutdownHandler will remove this region from AM#regions. So this region is still existing in RIT. TimeoutMonitor will take care of it after it got timeout. Then invoke unassign again. Since this region has been removed from AM#regions, it will return directly due to the below code:

          synchronized (this.regions) {
            // Check if this region is currently assigned
            if (!regions.containsKey(region)) {
              LOG.debug("Attempted to unassign region " +
                region.getRegionNameAsString() + " but it is not " +
                "currently assigned anywhere");
              return;
            }
          }
      

      Then it leads to an end-less loop.

      1. HBASE-5927_94_v2.patch
        11 kB
        rajeshbabu
      2. HBASE-5927_trunk_2.patch
        12 kB
        rajeshbabu
      3. HBASE-5927_trunk.patch
        13 kB
        rajeshbabu
      4. HBASE-5927_94.patch
        12 kB
        ramkrishna.s.vasudevan
      5. TestCaseForReProduce.txt
        5 kB
        Jieshan Bean

        Activity

          People

          • Assignee:
            rajeshbabu
            Reporter:
            Jieshan Bean
          • Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development