hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rajeshbabu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-9847) list command from HBase shell is not connecting to new active master on master switch
Date Sat, 26 Oct 2013 10:05:30 GMT

    [ https://issues.apache.org/jira/browse/HBASE-9847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13806047#comment-13806047

rajeshbabu commented on HBASE-9847:

    public HTableDescriptor[] listTables() throws IOException {
      if (this.master == null) {
        this.master = getMaster();
      HTableDescriptor[] htd = master.getHTableDescriptors();
      return htd;
The reason for failure is the master object in HConnectionManager pointing to dead master
and we are trying to get table descriptors from that because master is not null. We need to
check whether master is running or not(The check is there in getMaster() call). So the null
condition is not there.

Thanks [~pankaj2461] for finding this. You can give patch. This issue present in 0.94 version
or less.

> list command from HBase shell is not connecting to new active master on master switch
> -------------------------------------------------------------------------------------
>                 Key: HBASE-9847
>                 URL: https://issues.apache.org/jira/browse/HBASE-9847
>             Project: HBase
>          Issue Type: Bug
>          Components: shell
>    Affects Versions: 0.94.11
>            Reporter: rajeshbabu
>            Assignee: rajeshbabu
> 1) Started hbase cluster with two masters 
> 2) started shell.
> 3) Master switch happened.
> From now onward not able to perform list command without restarting the shell. Its always
pointing to old master.
> {code}
> hbase(main):003:0> list
> ERROR: java.net.ConnectException: Connection refused
> Here is some help for this command:
> List all tables in hbase. Optional regular expression parameter could
> be used to filter the output. Examples:
>   hbase> list
>   hbase> list 'abc.*'
> {code}

This message was sent by Atlassian JIRA

View raw message