Skip to content

Commit

Permalink
CPL: Robustly recover from failures during restart-file writing.
Browse files Browse the repository at this point in the history
It's possible for a crash that occurs during restart writing to lead to
inconsistent or incomplete rpointer files. While we can't salvage the restart
files in general, we can at least provide a consistent set of rpointer files --
namely, the previous ones -- for the next restart.

The rpointer manager provides this capability by copying all rpointer.X files to
rpointer.X.prev before components write restart files, then removing
rpointer.X.prev files when all components are done.

If a crash occurs midway through, on restart, the consistent rpointer.X.prev
files will be used.
  • Loading branch information
ambrad committed Feb 20, 2024
1 parent ccbccc1 commit cc12972
Showing 1 changed file with 445 additions and 1 deletion.
Loading

0 comments on commit cc12972

Please sign in to comment.