record when Scan update history load from bulk storage is complete
The update history load from bulk storage records when it is complete, and update history pruning and the votes store wait for it:
- The load records completion (
update_history_from_bulk_storage_complete) and from when its update history has no gaps (update_history_from_bulk_storage_loaded_from). A restart after completion does nothing, unless the analyzable time window was widened: then it loads the earlier segments too. HistoryReadiness.isUpdateHistoryLoaded: true for a genesis history start, or for a later one once the load is complete or never ran.PruneUpdateHistoryTriggerdrops no partitions until then.VotesStoreBackfillingreads its own update history for a later history start only once it is loaded without gaps since the founding transaction (isUpdateHistoryLoadedFrom); before that, it reads from peers.- Init order:
ScanHistoryStart.createandUpdateHistoryLoadFromBulkStorage.resetProgressIfAskedapply the debug flags before anything reads the history start or the load's progress.
The ACS snapshot seed (#8405) and the update history listing (#8799) are to wait on isUpdateHistoryLoaded.
Part of #6311.
Pull Request Checklist
Cluster Testing
- If a cluster test is required, comment
/cluster_teston this PR to request it, and ping a maintainer to run it. - If an upgrade test is required, comment
/upgrade_teston this PR to request it, and ping a maintainer to run it. - If a logical synchronizer upgrade test is required (from canton-3.5), comment
/lsu_teston this PR to request it, and ping a maintainer to run it.
PR Guidelines
- Describe user-facing changes in the release notes, i.e. any change visible to anyone deploying, operating, integrating with or using Splice.
- Specify fixed issues with
Fixes #n, and mention issues worked on using#n - Include a screenshot for frontend-related PRs - see README or use your favorite screenshot tool
Merge Guidelines
- Make the git commit message look sensible when squash-merging on GitHub (most likely: just copy your PR description).