HBase
  1. HBase
  2. HBASE-5873

TimeOut Monitor thread should be started after atleast one region server registers.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.90.6
    • Fix Version/s: 0.94.0, 0.95.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently timeout monitor thread is started even before the region server has registered with the master.
      In timeout monitor we depend on the region server to be online

      boolean allRSsOffline = this.serverManager.getOnlineServersList().
              isEmpty();
      

      Now when the master starts up it sees there are no online servers and hence sets
      allRSsOffline to true.

      setAllRegionServersOffline(allRSsOffline);
      

      So this.allRegionServersOffline is also true.
      By this time an RS has come up,
      Now timeout comes up again (after 10secs) in the next cycle he sees allRSsOffline as false.
      Hence

      else if (this.allRegionServersOffline && !allRSsOffline) {
                  // if some RSs just came back online, we can start the
                  // the assignment right away
                  actOnTimeOut(regionState);
      

      This condition makes him to take action based on timeout.
      Because of this even if one Region assignment of ROOT is going on, this piece of code triggers another assignment and thus we get RegionAlreadyinTransition Exception. Later we need to wait for 30 mins for assigning ROOT itself.

      1. HBASE-5873.patch
        2 kB
        rajeshbabu
      2. 5873-trunk.txt
        2 kB
        Lars Hofhansl

        Activity

          People

          • Assignee:
            rajeshbabu
            Reporter:
            ramkrishna.s.vasudevan
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development