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

ExportSnapshot should validate the source snapshot before copying files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.99.0, 1.0.0, 3.0.0-alpha-1, 2.0.0
    • 2.5.0, 3.0.0-alpha-3, 2.4.12
    • snapshots
    • None

    Description

      RunningĀ ExportSnapshot with default parameters will copy the snapshot to a target location, and then use verifySnapshot to validate the integrity of the written snapshot. However, it is possible for the source snapshot to be invalid which leads to an invalid exported snapshot.

      We can validate the source snapshot before export.

      By default, we can validate the source snapshot unless the -no-target-verify parameter is set. We could also introduce a separate parameter for -no-source-verify if an operator wanted to validate the target but not validate the source for some reason, to provide some amount of backwards compatibility if that scenario is important.

      Attachments

        1. HBASE-26720.v01.patch
          3 kB
          xi chaomin

        Issue Links

          Activity

            People

              xichaomin xi chaomin
              dmanning David Manning
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: