hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pankaj Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-14296) ConnectionManager should validate the table existence before returning the table instance
Date Wed, 26 Aug 2015 01:57:45 GMT

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

Pankaj Kumar commented on HBASE-14296:
--------------------------------------

Yeah, I completely agree with you [~enis], but from client perspective it is a overhead for
them to retrieve HTable instance from connection and then check for table existence. 

> ConnectionManager should validate the table existence before returning the table instance
> -----------------------------------------------------------------------------------------
>
>                 Key: HBASE-14296
>                 URL: https://issues.apache.org/jira/browse/HBASE-14296
>             Project: HBase
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 2.0.0, 1.2.0, 0.98.15
>            Reporter: Pankaj Kumar
>            Assignee: Pankaj Kumar
>            Priority: Minor
>
> Table instance should be returned only when table exist.
> {code}
>     public HTableInterface getTable(TableName tableName, ExecutorService pool) throws
IOException {
>       if (managed) {
>         throw new NeedUnmanagedConnectionException();
>       }
>       return new HTable(tableName, this, tableConfig, rpcCallerFactory, rpcControllerFactory,
pool);
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message