~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

The upgrade run's data directories hold no table: a table of the version before is read by no check of the harness

Open
Open chadtmiller.com opened this issue 0 comments

harness/upgrade/ is two data directories the last release (v0.1.0) wrote, one shut down and one killed, and node compare.mjs --upgrade holds the server to what that release answered on them. Each of their four accounts wrote a few records: none wrote the mebibyte after which a log is compacted, so neither directory holds an account's table, only logs.

Since then an account's table has changed twice: its space repos moved out of its one entry into sections (the table's version 3, folded once from version 2 as an account is first loaded), and its blocks' check became XXH3 in place of SHA-256 (PDSTAB02, with PDSTAB01 still read). --upgrade passes whatever either does. What holds them is the server's own tests alone (log::tests::a_table_of_the_version_before_is_folded_once, tables_of_the_version_before_are_served_and_folded), which build the old tables with this version's code.

What would close it

--upgrade-write giving one account enough to be compacted (three records of 140000 bytes do it, as the limits run's openFiles check does), a space repo with records in it among them, and waiting for the table; then harness/upgrade/ written again with the v0.1.0 binary, and its expected answers with it. Both directories: a table found after a shutdown and after a kill.