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

HTableDescriptor Properties not preserved when cloning

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.94.6.1
    • 0.98.0, 0.95.2, 0.94.9
    • snapshots
    • None

    Description

      When cloning a snapshot to a new table the values[1] set on the original HTableDescriptor are not preserved.

      This is because the values are not pulled off and set in the RestoreSnapshotHelper.cloneTableSchema(..)[2] method.

      This affects a number of things such as custom properties but also for configured coprocessors for the table.

      [1] - http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/HTableDescriptor.html#setValue(byte[], byte[])
      [2] - https://github.com/apache/hbase/blob/0.94.6.1/src/main/java/org/apache/hadoop/hbase/snapshot/RestoreSnapshotHelper.java#L582

      Attachments

        1. HBASE-8742-v0.patch
          2 kB
          Matteo Bertozzi

        Issue Links

          Activity

            People

              mbertozzi Matteo Bertozzi
              mkwhitacre Micah Whitacre
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: