Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-18501 Use TableDescriptor and ColumnFamilyDescriptor as far as possible
  3. HBASE-18502

Change MasterObserver to use TableDescriptor and ColumnFamilyDescriptor

    XMLWordPrintableJSON

    Details

    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      Hide
      The methods which change to use TableDescriptor/ColumnFamilyDescriptor are shown below.
      + preCreateTable( ObserverContext,TableDescriptor, HRegionInfo[])
      + postCreateTable(ObserverContext ,TableDescriptor, HRegionInfo[])
      + preCreateTableAction(ObserverContext, TableDescriptor,HRegionInfo[])
      + postCompletedCreateTableAction(ObserverContext,TableDescriptor,HRegionInfo[])
      + preModifyTable(ObserverContext,TableName, TableDescriptor)
      + postModifyTable(ObserverContext,TableName, TableDescriptor)
      + preModifyTableAction( ObserverContext,TableName,TableDescriptor)
      + postCompletedModifyTableAction( ObserverContext,TableName,TableDescriptor)
      + preAddColumnFamily(ObserverContext,TableName, ColumnFamilyDescriptor)
      + postAddColumnFamily(ObserverContext,TableName, ColumnFamilyDescriptor)
      + preAddColumnFamilyAction(ObserverContext,TableName,ColumnFamilyDescriptor)
      + postCompletedAddColumnFamilyAction(ObserverContext,TableName, ColumnFamilyDescriptor)
      + preModifyColumnFamily(ObserverContext,TableName, ColumnFamilyDescriptor)
      + preModifyColumnFamilyAction(ObserverContext<MasterCoprocessorEnvironment,TableName,ColumnFamilyDescriptor)
      + postCompletedModifyColumnFamilyAction(ObserverContext<MasterCoprocessorEnvironment>,TableName,ColumnFamilyDescriptor)
      + preCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment>,SnapshotDescription,TableDescriptor)
      + postCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment>,SnapshotDescription,TableDescripto)
      + preRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment,SnapshotDescription,TableDescriptor)
      + postRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment,SnapshotDescription,TableDescriptor)
      + preGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment>,List<TableName>, List<TableDescriptor>,String)
      + postGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment>,List<TableName>, List<TableDescriptor>,String)
      + preGetTableNames(ObserverContext<MasterCoprocessorEnvironment>,List<TableDescriptor>, String)
      + postGetTableNames(ObserverContext<MasterCoprocessorEnvironment>,List<TableDescriptor>, String)
      Show
      The methods which change to use TableDescriptor/ColumnFamilyDescriptor are shown below. + preCreateTable( ObserverContext,TableDescriptor, HRegionInfo[]) + postCreateTable(ObserverContext ,TableDescriptor, HRegionInfo[]) + preCreateTableAction(ObserverContext, TableDescriptor,HRegionInfo[]) + postCompletedCreateTableAction(ObserverContext,TableDescriptor,HRegionInfo[]) + preModifyTable(ObserverContext,TableName, TableDescriptor) + postModifyTable(ObserverContext,TableName, TableDescriptor) + preModifyTableAction( ObserverContext,TableName,TableDescriptor) + postCompletedModifyTableAction( ObserverContext,TableName,TableDescriptor) + preAddColumnFamily(ObserverContext,TableName, ColumnFamilyDescriptor) + postAddColumnFamily(ObserverContext,TableName, ColumnFamilyDescriptor) + preAddColumnFamilyAction(ObserverContext,TableName,ColumnFamilyDescriptor) + postCompletedAddColumnFamilyAction(ObserverContext,TableName, ColumnFamilyDescriptor) + preModifyColumnFamily(ObserverContext,TableName, ColumnFamilyDescriptor) + preModifyColumnFamilyAction(ObserverContext<MasterCoprocessorEnvironment,TableName,ColumnFamilyDescriptor) + postCompletedModifyColumnFamilyAction(ObserverContext<MasterCoprocessorEnvironment>,TableName,ColumnFamilyDescriptor) + preCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment>,SnapshotDescription,TableDescriptor) + postCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment>,SnapshotDescription,TableDescripto) + preRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment,SnapshotDescription,TableDescriptor) + postRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment,SnapshotDescription,TableDescriptor) + preGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment>,List<TableName>, List<TableDescriptor>,String) + postGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment>,List<TableName>, List<TableDescriptor>,String) + preGetTableNames(ObserverContext<MasterCoprocessorEnvironment>,List<TableDescriptor>, String) + postGetTableNames(ObserverContext<MasterCoprocessorEnvironment>,List<TableDescriptor>, String)

      Description

      MasterObserver is IA.COPROC so we can make some Incompatible change for 3.0 and 2.0

        Attachments

        1. HBASE-18502.v2.patch
          83 kB
          Chia-Ping Tsai
        2. HBASE-18502.v1.patch
          82 kB
          Chia-Ping Tsai
        3. HBASE-18502.v1.patch
          82 kB
          Chia-Ping Tsai
        4. HBASE-18502.v0.patch
          73 kB
          Chia-Ping Tsai

          Issue Links

            Activity

              People

              • Assignee:
                chia7712 Chia-Ping Tsai
                Reporter:
                chia7712 Chia-Ping Tsai
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: