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

Fix client.TestClientClusterStatus

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      After HBASE-18511, the master doesn't carry any regions by default. Hence, The active master doesn't report its load because the report thread is sleeping in waitForMasterActive().

        protected void waitForMasterActive(){
          boolean tablesOnMaster = LoadBalancer.isTablesOnMaster(conf);
          while (!(tablesOnMaster && activeMaster) && !isStopped() && !isAborted()) {
            sleeper.sleep();
          }
        }
      

      In conclusion, the ClusterStatue#getServers won't contain the master name.

        Attachments

        1. HBASE-18634.v0.patch
          1 kB
          Chia-Ping Tsai
        2. HBASE-18634.v0.patch
          1 kB
          Chia-Ping Tsai

          Issue Links

            Activity

              People

              • Assignee:
                chia7712 Chia-Ping Tsai
                Reporter:
                chia7712 Chia-Ping Tsai
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: