You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2022/06/16 05:49:00 UTC
[jira] [Closed] (HBASE-8038) Repeat modify HTableDescriptor in TableModifyFamilyHandler
[ https://issues.apache.org/jira/browse/HBASE-8038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Kyle Purtell closed HBASE-8038.
--------------------------------------
> Repeat modify HTableDescriptor in TableModifyFamilyHandler
> ----------------------------------------------------------
>
> Key: HBASE-8038
> URL: https://issues.apache.org/jira/browse/HBASE-8038
> Project: HBase
> Issue Type: Bug
> Reporter: Lijin Bin
> Priority: Major
> Attachments: HBASE-8038-94-2.patch, HBASE-8038-94.patch
>
>
> {code}
> TableModifyFamilyHandler:
> protected void handleTableOperation(List<HRegionInfo> regions) throws IOException {
> // Update table descriptor in HDFS
> HTableDescriptor htd =
> this.masterServices.getMasterFileSystem().modifyColumn(tableName, familyDesc);
> // Update in-memory descriptor cache
> this.masterServices.getTableDescriptors().add(htd); // 2
> }
> MasterFileSystem:
> public HTableDescriptor modifyColumn(byte[] tableName, HColumnDescriptor hcd)
> throws IOException {
> this.services.getTableDescriptors().add(htd); // 1
> return htd;
> }
> {code}
> The FSTableDescriptors.add(HTableDescriptor htd) is called twice, we should remove one.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)