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

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 1.3.0, 2.0.0
    • Component/s: canary
    • Labels:
      None
    • Hadoop Flags:
      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-branch-1-v1.patch
          2 kB
          Jianwei Cui
        2. HBASE-15327-trunk.patch
          1 kB
          Ted Yu
        3. HBASE-15327-trunk.patch
          1 kB
          Jianwei Cui
        4. HBASE-15327-v1.patch
          2 kB
          Jianwei Cui

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: