ic icon indicating copy to clipboard operation
ic copied to clipboard

refactor(ic-recovery): [CON-1589] [CON-1604] use rsync includes + always download latest CUP checkpoint

Open pierugo-dfinity opened this issue 1 year ago • 0 comments

CON-1589: Instead of keeping track what data we want to exclude from /var/lib/ic/data/ic_state, this changes to selecting what to include, simplifying maintenance like avoiding to depend on the directory structure and preventing cases like this to happen again. As a side-effect, DownloadState will not download the consensus pool if the previous step DownloadConsensusPool did not do so anymore. The PR clearly distinguishes the two steps now: DownloadConsensusPool only downloads the consensus pool, DownloadState only downloads the state (== the latest CUP checkpoint, see below).

CON-1604: As described in the ticket description, downloading the latest checkpoint is not always the correct solution, and we should instead download the checkpoint corresponding to the latest CUP. Though, if the consensus pool was not downloaded (because DownloadConsensusPool was skipped or in subnet splitting), we still download the latest checkpoint.

pierugo-dfinity avatar Oct 28 '25 09:10 pierugo-dfinity