You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2011/07/08 18:51:16 UTC

[jira] [Created] (HBASE-4080) Instance handed out from HTablePool is treated as HTable whereas it should be HTableInterface

Instance handed out from HTablePool is treated as HTable whereas it should be HTableInterface
---------------------------------------------------------------------------------------------

                 Key: HBASE-4080
                 URL: https://issues.apache.org/jira/browse/HBASE-4080
             Project: HBase
          Issue Type: Bug
            Reporter: Ted Yu


RESTServlet uses HTablePool. The problem here is that the factory returns an HTableInterface when we ask
it to create an HTable instance, but at same time, we are just assuming the HTableInterface
is an HTable.  Stack suggested adding the two
methods (getRegionsInfo and setAutoFlush) we need to HTableInterface.

setAutoFlush was requested to be added to HTableInterface before.
getRegionsInfo is deprecated. So we should add getRegionLocations to HTableInterface.

We should also consider the new methods Doug is adding in HBASE-4079

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (HBASE-4080) Instance handed out from HTablePool is treated as HTable whereas it should be HTableInterface

Posted by "Lars Hofhansl (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Hofhansl resolved HBASE-4080.
----------------------------------

    Resolution: Duplicate

Dup of HBASE-5728... It think
                
> Instance handed out from HTablePool is treated as HTable whereas it should be HTableInterface
> ---------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4080
>                 URL: https://issues.apache.org/jira/browse/HBASE-4080
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
>
> RESTServlet uses HTablePool. The problem here is that the factory returns an HTableInterface when we ask
> it to create an HTable instance, but at same time, we are just assuming the HTableInterface
> is an HTable.  Stack suggested adding the two
> methods (getRegionsInfo and setAutoFlush) we need to HTableInterface.
> setAutoFlush was requested to be added to HTableInterface before.
> getRegionsInfo is deprecated. So we should add getRegionLocations to HTableInterface.
> We should also consider the new methods Doug is adding in HBASE-4079

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira