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

Canary will always invoke admin.balancer() in each sniffing period when writeSniffing is enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 1.3.0, 2.0.0
    • canary
    • None
    • Reviewed

    Description

      When Canary#writeSniffing is enabled, Canary#checkWriteTableDistribution will make sure the regions of write table distributed on all region servers as:

            int numberOfServers = admin.getClusterStatus().getServers().size();
            ......
            int numberOfCoveredServers = serverSet.size();
            if (numberOfCoveredServers < numberOfServers) {
              admin.balancer();
            }
      

      The master will also work as a regionserver, so that ClusterStatus#getServers will contain the master. On the other hand, write table of Canary will not be assigned to master, making numberOfCoveredServers always smaller than numberOfServers and admin.balancer always be invoked in each sniffing period. This may cause frequent region moves. A simple fix is excluding master from numberOfServers.

      Attachments

        1. HBASE-15327-v1.patch
          2 kB
          Jianwei Cui
        2. HBASE-15327-trunk.patch
          1 kB
          Jianwei Cui
        3. HBASE-15327-trunk.patch
          1 kB
          Ted Yu
        4. HBASE-15327-branch-1-v1.patch
          2 kB
          Jianwei Cui

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: