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

Auto-drop rollback snapshot for snapshot restore

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.0, 0.96.1
    • None
    • None
    • Reviewed

    Description

      Below is an excerpt from snapshot restore javadoc:

         * Restore the specified snapshot on the original table. (The table must be disabled)
         * Before restoring the table, a new snapshot with the current table state is created.
         * In case of failure, the table will be rolled back to the its original state.
      

      We can improve the handling of rollbackSnapshot in two ways:

      1. give better name to the rollbackSnapshot (adding

      '-for-rollback-'

      ). Currently the name is of the form:
      String rollbackSnapshot = snapshotName + "-" + EnvironmentEdgeManager.currentTimeMillis();

      2. drop rollbackSnapshot at the end of restoreSnapshot() if the restore is successful. We can introduce new config param, named 'hbase.snapshot.restore.drop.rollback', to keep compatibility with current behavior.

      Attachments

        1. HBASE-8465-v6.patch
          12 kB
          Matteo Bertozzi
        2. HBASE-8465-v5.patch
          13 kB
          Matteo Bertozzi
        3. HBASE-8465-v4.patch
          13 kB
          Matteo Bertozzi
        4. HBASE-8465-v3.patch
          12 kB
          Matteo Bertozzi
        5. 8465-trunk-v2.txt
          4 kB
          Ted Yu
        6. 8465-trunk-v1.txt
          3 kB
          Ted Yu

        Issue Links

          Activity

            People

              mbertozzi Matteo Bertozzi
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: