Skip to content

golive: restore and check follow-ups from #288's lenses #300

Closed

Description

@scuttletoby

Follow-ups from the two lenses on #288 (data: #288 (comment), state: #288 (comment)). Both SAFE; none of these blocks. All in fork-kit/golive/.

  1. minor, pre-existing (data lens minor 1). coldcopy.py ~:394: when a kept -wal is gone and the home's -wal begins with a copy's header but is not the kept bytes (sums), restore calls the record stale and names a mixed DB+WAL (copy's rows + T3's) as "the old home". Refuse as "cannot be told" instead. The one false refusal (a moved-back old WAL that T3 later appended to) is the safe side.
  2. minor, test gap (data minor 2 / state 2). coldcopy.py ~:299-314: the copy's -wal must still match its manifest SHA256 before its header counts. No test fails without it. Add one where the copy's -wal changed after the manifest and expect "cannot be told".
  3. minor, test gap (data minor 3 / state 3). coldcopy.py ~:373-376: the copy-back check skips a kept -shm, and has a kept and guard; neither is tested. Add a copied-back test that leaves the kept -shm out (README says it need not go back) and one whose record names only a -shm.
  4. minor, test gap (state 1). check.py ~:224: server_changed's "an update is pending" branch has no test. Add an update.status: pending case to test_t3_stopping_during_the_report_refuses_its_answer.
  5. nit (state 5). check.py ~:190-195: when the re-read after the report refuses, drop counts from the --json result so a later rehearse/switch caller cannot use them.
  6. nit, wording (state 4). Copy-back advice ends "(the record is then stale)"; after the WAL is moved out the record stays live and the rerun's movedAside is the old home. Fix the words.
  7. nit, wording (data nit). ~:450: the "the copy's (same SHA256)" group says "remove them"; say "move them out of userdata" like the other groups.

State question for the fix: each change must keep "every refusal's advice, when followed, leads to a rerun that finishes" (no loops), and must be checked against an old record, an empty or unreadable record and a restore stopped half-way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions