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

Expose the current state of the balancerSwitch

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.95.2
    • 0.95.0
    • master
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: