Junegunn Choi created HBASE-30590:
-------------------------------------
Summary: Support asynchronous snapshot export through MapReduce
Key: HBASE-30590
URL: https://issues.apache.org/jira/browse/HBASE-30590
Project: HBase
Issue Type: Improvement
Components: mapreduce, snapshots
Reporter: Junegunn Choi
Assignee: Junegunn Choi
h2. Problem
{{ExportSnapshot}} prepares the destination snapshot manifest in the submitting
process, waits for a MapReduce job to copy the HFiles, then finalizes and
verifies the destination in that process.
If the submitting process exits after job submission, the MapReduce job can
succeed without completing the snapshot export. External schedulers must keep
the submitting process alive and track it separately from the copy job.
h2. Proposed Fix
* Add an opt-in {{--async}} mode that moves destination preparation,
finalization, and verification into a MapReduce output committer.
** Return the YARN application ID after submission. The application's
successful completion then includes finalization and the requested
verification. Preserve the existing synchronous behavior by default.
* An ApplicationMaster failure or cancellation can leave snapshot metadata at
the destination. Wait for the application to finish, then check the destination
before retrying with {{--overwrite}}. Do not run concurrent exports to the same
destination snapshot name.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)