[
https://issues.apache.org/jira/browse/HBASE-18231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16112226#comment-16112226
]
Ted Yu commented on HBASE-18231:
--------------------------------
For AsyncAdmin.java :
{code}
+ * @deprecated Since 2.0. Will be removed in 3.0. Use {@link
#unassign(byte[], boolean)} instead.
*/
CompletableFuture<Boolean> closeRegion(byte[] regionName,
Optional<ServerName> serverName);
{code}
Since 2.0 has not been released. The above method can be removed, right ?
> Deprecate and throw unsupported operation when Admin#closeRegion is called.
> ---------------------------------------------------------------------------
>
> Key: HBASE-18231
> URL: https://issues.apache.org/jira/browse/HBASE-18231
> Project: HBase
> Issue Type: Sub-task
> Components: Admin
> Affects Versions: 2.0.0
> Reporter: stack
> Assignee: Appy
> Priority: Critical
> Fix For: 2.0.0, 3.0.0
>
> Attachments: HBASE-18231.master.001.patch,
> HBASE-18231.master.002.patch, HBASE-18231.master.003.patch
>
>
> [~uagashe] tripped over this today. Admin#closeRegion which we used to use in
> branch-1 will cause damage in AMv2 cluster. Instead you need to call unassign
> -- i.e. all cluster ops must go via the Master; no more going direct to
> RegionServer closing regions behind the Master's back.
> Review all Admin ops to see what else skirts Master and deprecate and throw
> unsupported if called.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)