Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
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.