Backport v21 !15739: Rollup node/Store: fix background store migration
Backport !15739 (merged) to v21: Rollup node/Store: fix background store migration
Commits
- 09ec98b9 Tests: rename rollup node store tests file
- fe33b151 Tests/rollup node: test store migration
- f1ec3d11 Rollup node/Store: fix background store migration
- 68a621e8 Rollup node: fix progress bar count for store migration
- 2f75892a Doc: changelog
Original MR description
What
This MR makes the store migration code not overwrite data that is more up to date.
Why
During the background migration of the store, the data (singleton values) that is in the store can become outdated wrt. to the evolving state of the rollup node. This has little impact on the rollup node itself because these will autocorrect, but because of this, the rollup node would send old heads in its stream to the EVM sequencer at the end of the migration.
Manually testing the MR
Checkout before the third commit and verify that the tests fail with
dune exec src/lib_smart_rollup_node/test/main.exe -- 'title =~ store_migration' -k
Run the same command on the head of this branch to see them succeed.