Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-8038

Repeat modify HTableDescriptor in TableModifyFamilyHandler

    XMLWordPrintableJSON

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.

      Attachments

        1. HBASE-8038-94-2.patch
          1 kB
          Lijin Bin
        2. HBASE-8038-94.patch
          1 kB
          Lijin Bin

        Activity

          People

            Unassigned Unassigned
            binlijin Lijin Bin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: