David Manning created HBASE-26720:
-------------------------------------
Summary: ExportSnapshot should validate the source snapshot before
copying files
Key: HBASE-26720
URL: https://issues.apache.org/jira/browse/HBASE-26720
Project: HBase
Issue Type: Improvement
Components: snapshots
Affects Versions: 2.0.0, 3.0.0-alpha-1, 1.0.0, 0.99.0
Reporter: David Manning
Assignee: David Manning
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.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)