[
https://issues.apache.org/jira/browse/HBASE-22039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16791282#comment-16791282
]
Zheng Hu commented on HBASE-22039:
----------------------------------
The synchronous paramter is used by jruby command ? One problem : adding an
synchronous parameter in async API may confuse others ?
> Should add the synchronous parameter for the XXXSwitch method in AsyncAdmin
> ---------------------------------------------------------------------------
>
> Key: HBASE-22039
> URL: https://issues.apache.org/jira/browse/HBASE-22039
> Project: HBase
> Issue Type: Sub-task
> Components: Admin, asyncclient, Client
> Reporter: Duo Zhang
> Assignee: Duo Zhang
> Priority: Major
> Fix For: 3.0.0, 2.2.0, 2.3.0
>
> Attachments: HBASE-22039.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)