Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Edit log branch (HDFS-1073)
-
None
-
None
-
Reviewed
Description
After HDFS-1538, the startup of the NN is done with the following phases:
- Inspect storage directories
- Formulate a "load plan", where a load plan is:
- A set of recovery actions (eg deleting half-uploaded checkpoint uplods)
- The fsimage to restore
- A sequence of edit logs to replay
- Run the recovery
- Load specified image
- Load specified edits.
This JIRA adds code to inspect a set of storage directories where the image and edits files are named according to the scheme designed in HDFS-1073, and formulate such a load plan.