hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duo Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-21550) Add a new method preCreateTableRegionInfos for MasterObserver which allows CPs to modify the TableDescriptor
Date Thu, 06 Dec 2018 00:28:00 GMT

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

Duo Zhang commented on HBASE-21550:
-----------------------------------

OK, can backport later if other folks want it on branch-2.1 and branch-2.0.

> Add a new method preCreateTableRegionInfos for MasterObserver which allows CPs to modify
the TableDescriptor
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-21550
>                 URL: https://issues.apache.org/jira/browse/HBASE-21550
>             Project: HBase
>          Issue Type: Bug
>          Components: Coprocessors
>            Reporter: Duo Zhang
>            Assignee: Duo Zhang
>            Priority: Major
>             Fix For: 3.0.0, 2.2.0
>
>         Attachments: HBASE-21550.patch
>
>
> Before 2.0, we will pass a HTableDescriptor and the CPs can modify the schema of a table,
but now we will pass a TableDescriptor, which is immutable. I think it is correct to pass
an immutable instance here, but we should have a return value for this method to allow CPs
to return a new TableDescriptor.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message