You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Purtell (JIRA)" <ji...@apache.org> on 2018/03/02 02:23:00 UTC
[jira] [Commented] (HBASE-20109) Add Admin#getMaster API to
branch-1
[ https://issues.apache.org/jira/browse/HBASE-20109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16383024#comment-16383024 ]
Andrew Purtell commented on HBASE-20109:
----------------------------------------
Really simple patch, done very similar to existing code. Good for branch-1.
> Add Admin#getMaster API to branch-1
> -----------------------------------
>
> Key: HBASE-20109
> URL: https://issues.apache.org/jira/browse/HBASE-20109
> Project: HBase
> Issue Type: Improvement
> Components: Client
> Affects Versions: 1.4.2
> Reporter: Andrew Purtell
> Assignee: Andrew Purtell
> Priority: Minor
> Fix For: 1.5.0
>
> Attachments: HBASE-20109-branch-1.patch
>
>
> Right now the only public API available in branch-1 to the client to learn the server name of the active master is Admin#getClusterStatus#getMaster, returning ServerName. On a cluster of any size getClusterStatus is expensive, especially if used only to retrieve the active master name.
> Later versions have
> {code}
> ServerName Admin#getMaster()
> {code}
> for lightweight discovery of the active master location. Add this to branch-1.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)