You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Guanghao Zhang (JIRA)" <ji...@apache.org> on 2017/10/14 15:31:00 UTC

[jira] [Created] (HBASE-19010) Reimplement getMasterInfoPort for Admin

Guanghao Zhang created HBASE-19010:
--------------------------------------

             Summary: Reimplement getMasterInfoPort for Admin
                 Key: HBASE-19010
                 URL: https://issues.apache.org/jira/browse/HBASE-19010
             Project: HBase
          Issue Type: Sub-task
            Reporter: Guanghao Zhang


Current implementation.
{code}
  public int getMasterInfoPort() throws IOException {
    // TODO: Fix!  Reaching into internal implementation!!!!
    ConnectionImplementation connection = (ConnectionImplementation)this.connection;
    ZooKeeperKeepAliveConnection zkw = connection.getKeepAliveZooKeeperWatcher();
    try {
      return MasterAddressTracker.getMasterInfoPort(zkw);
    } catch (KeeperException e) {
      throw new IOException("Failed to get master info port from MasterAddressTracker", e);
    }
  }
{code}
Open this issue to fix TODO.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)