Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-25826 Revisit the synchronization of balancer implementation
  3. HBASE-25872

Add documentation for LoadBalancer about synchronization

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      In general, the balanceCluster call is not thread safe and we only allow one balanceCluster call at the same time, so we need to synchronize balanceCluster, onConfigurationChange, and setClusterMetrics(which will be called periodically, maybe we should rename it to updateClusterMetrics).

      Most setters do not need to be synchronized as they will only be called once before initialization.

      And anothe group of methods are XXXAssignment, these methods should be thread safe and should not be synchronized to improve the assignment performance.

      Attachments

        Issue Links

          Activity

            People

              zhangduo Duo Zhang
              zhangduo Duo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: