Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-17856 Further improvements for asynchronous hbase client
  3. HBASE-22039

Should add the synchronous parameter for the XXXSwitch method in AsyncAdmin

    XMLWordPrintableJSON

Details

    • Reviewed
    • Add drainXXX parameter for balancerSwitch/splitSwitch/mergeSwitch methods in the AsyncAdmin interface, which has the same meaning with the synchronous parameter for these methods in the Admin interface.

    Description

      For now we always pass true to HMaster, maybe the decision is that user just do not need to calling get on the returned Future if it wants asynchronous.

      But the problem here is that, the return value is not void, it is a boolean, which is the previous state of the flag, sometimes users do not need to wait until the previous transitions or split/merge to complete, but they still want to get the previous value of the flag.

      So we still need to provide the synchronous parameter.

      Attachments

        1. HBASE-22039-v1.patch
          9 kB
          Duo Zhang
        2. HBASE-22039-v1.patch
          9 kB
          Duo Zhang
        3. HBASE-22039-v1.patch
          9 kB
          Duo Zhang
        4. HBASE-22039.patch
          9 kB
          Duo Zhang

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: