[
https://issues.apache.org/jira/browse/HBASE-18241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16062172#comment-16062172
]
Chia-Ping Tsai commented on HBASE-18241:
----------------------------------------
bq. On Region, getDescriptor would imply you'd get a RegionDescriptor... but
that is not what is happening...
How about having RegionDescriptor ?
# RegionDescriptor is a read-only interface
# RegionDescriptor will extend the TableDescriptor
# RegionDescriptor will contain all of the read-only methods from HRegionInfo
# deprecate HRegionInfo to be removed
# RegionDescriptor is built by RegionDescriptorBuilder
Admin#deleteTables, Admin#enableTables, Admin#disableTables, and
Admin#getTableDescriptorsByTableName also return the HTD.
# Admin#getTableDescriptorsByTableName -> Admin#getTableDescriptors
# Admin#disableTables -> It isn't a transactional API. We should encourage
user to use Admin#listTables and Admin#disableTables. It should be deprecated
and it doesn't need the new API.
# Admin#enableTables -> ditto
# Admin#deleteTables -> ditto
> Change client.Table and client.Admin to not use HTableDescriptor
> ----------------------------------------------------------------
>
> Key: HBASE-18241
> URL: https://issues.apache.org/jira/browse/HBASE-18241
> Project: HBase
> Issue Type: Bug
> Reporter: Biju Nair
> Priority: Critical
> Fix For: 3.0.0, 2.0.0-alpha-2
>
>
> {{HTableDescriptor}} is deprecated and scheduled to be removed in 3.0. But
> [client.Table|https://github.com/apache/hbase/blob/a66d491892514fd4a188d6ca87d6260d8ae46184/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Table.java#L69]
> and
> [client.Admin|https://github.com/apache/hbase/blob/a66d491892514fd4a188d6ca87d6260d8ae46184/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java#L198]
> method {{getTableDescriptor}} returns {{HTableDescriptor}}.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)