Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
-
None
Description
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; }
The FSTableDescriptors.add(HTableDescriptor htd) is called twice, we should remove one.