Repository navigation
Conversation
…8 (milestone 37) Milestone 30's coverage run found the snapshot save and restore code little exercised beyond recovery. SNAPSHOT saves a table of its own alone (native, blocking; a third of the time also CSV, whose files must hold its rows), changes it, and restores it: into the emptied table, which must get back the rows saved, or into the table as it is with a duplicates path, which must add the saved rows that collide with none there and write the others to the duplicates files. @SnapshotScan must list the snapshot; @SnapshotDelete removes it. Snapshots go to each node's own directory (SNAP_AUTO): run-sqlancer.sh's nodes share a machine, and in one directory they refuse each other's nonce; --snapshot-path is the cluster directory, where the oracle reads the files. Rows are counted as distinct (every replica writes its duplicates). A save that VoltDB queues behind another snapshot is awaited (@statistics SNAPSHOTSTATUS), and run-sqlancer.sh sets USER_SNAPSHOT_RETRY_INTERVAL to 1 s (SQLANCER_USER_SNAPSHOT_RETRY overrides it). Checks take turns. Bugs, each with a reproduction script: - ENG-30676 (Blocker, hang): a restore while a node rejoins wedges the cluster; while avoiding known bugs, a restore waits on --ddl-hold's file. - ENG-30677 (Blocker, crash): writes to a join view's replicated table crash the server while a restore and DDL run at once; while avoiding known bugs, no DDL runs during a restore (a lock in VoltDBConnection). - ENG-30678 (Major): after a rejoin, a restore's duplicates are written to no file; while avoiding known bugs and nodes fail, the files are not counted.
This was referenced Nov 13, 2026
Author
|
Superseded by #51, which combines every ENG-30396 PR of this repo into one. This PR's branch is kept, and its description still has this milestone's details and lab results. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Milestone 37 of ENG-30396 (tracked in ENG-30581, epic ENG-30580 "SQL Housekeeping"). Stacked on #35; review that and the PRs below it first.
Why
Milestone 30's coverage run found the snapshot code exercised little beyond what recovery uses:
SnapshotRestore802 of 1,518 lines,SnapshotUtil439 of 852,TableSaveFile268 of 518. Restoring with a duplicates path, CSV snapshots,@SnapshotScanand@SnapshotDeletenever ran.What it changes
@SnapshotScanmust list the snapshot, and@SnapshotDeleteremoves it.SNAP_AUTO), becauserun-sqlancer.sh's nodes share a machine and in one directory they refuse each other's nonce.--snapshot-pathnames the cluster directory, where the oracle reads the files.@Statistics SNAPSHOTSTATUS.run-sqlancer.shsetsUSER_SNAPSHOT_RETRY_INTERVALto 1 s;SQLANCER_USER_SNAPSHOT_RETRYoverrides it. Checks take turns.Bugs found
--avoid-known-bugsis true@SnapshotRestoreof a table while a node rejoins wedges the cluster for good: sites wait inSnapshotRestore.executePlanFragment, and the rejoin never completes. Reproduction:voltdb/repros/ENG-30676.sh. Hang, Blocker.--ddl-hold's file, so it never overlaps a kill.ReplicatedMaterializedViewHandler) while@SnapshotRestoreand DDL run on other tables. Reproduction:voltdb/repros/ENG-30677.sh. Server crash, Blocker.VoltDBConnection).@SnapshotRestorewithduplicatesPathleaves the duplicate rows out of the table and writes none of them to the duplicates files. Reproduction:voltdb/repros/ENG-30678.sh. Major.Coverage (
run-coverage.sh, master bf8602e3, every oracle)Milestone 41's coverage run, which included SNAPSHOT:
SnapshotRestore904 of 1,426 lines.Testing
mvn verifypasses.matrix-systemtest-apprunner-sqlancer(branch jobENG-30396-sqlancer-nightly, replays with these settings). They ran 16.1.0-SNAPSHOT (master kit 400) beside one node of 16.0.0, 45 minutes per run, with all thirty-one oracles.run-repros.shport wait and TASK's timing fix.