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

Expose the current state of the balancerSwitch

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.95.2
    • Fix Version/s: 0.95.0
    • Component/s: master
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The balancerSwitch as in both 0.90 and 0.92.1 is implemented in such a way that it is impossible to retrieve its value without changing it:

      /**
      Turn the load balancer on or off.
      @param b If true, enable balancer. If false, disable balancer.
      @return Previous balancer value
      */
      public boolean balanceSwitch(final boolean b);

      It would be nice to have a way to just get the current state.

        Attachments

        1. HBASE-5953-v2.patch
          11 kB
          Gregory Chanan
        2. HBASE-5953.patch
          11 kB
          Gregory Chanan
        3. 5953-v2.patch
          11 kB
          Ted Yu

          Activity

            People

            • Assignee:
              gchanan Gregory Chanan
              Reporter:
              dsw David S. Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: