Repository navigation
Conversation
…ilestone 22: whole-cluster crash and recovery) Every S seconds the script kills every node at once and restarts them all, which recovers the database from its automatic snapshots and its synchronous command log; a recovery that takes over 600 s fails the run. The provider gets --crashes true: the errors of a crash are handled as a killed node's, and new connections wait for the recovery. DURABLE counts every table on the cluster and on the mirror, which never crashes: an acknowledged change lost in a crash, or a table recovery did not bring back, fails it. A control run with the command log off failed 3 databases of 4 within 5 minutes. An interrupted query no longer marks its database diverged, only an interrupted change, so a database keeps being compared after a crash; the summary counts the databases DURABLE compared across one.
This was referenced Nov 10, 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 22 of ENG-30396 (tracked in ENG-30581, epic ENG-30580 "SQL Housekeeping"): whole-cluster crashes and recovery in the middle of a run, and the DURABLE oracle. Stacked on #21 (milestone 21), which is stacked on #20 to #1; review those first.
The nightly job adds a crash run once VoltDB/internal#6397 is merged; VoltDB/pro#7118 gives
run-jenkins-sqlancer-test.shthe run shape.Why
Node failures (milestone 12) and resizes (milestone 21) keep the cluster up: a surviving replica answers, and nothing is read back from disk. A crash of every node at once is different. The database comes back only from its automatic snapshots and its command log. A transaction acknowledged before the crash and missing after it is lost data, and every oracle so far would read the recovered database as a fresh, consistent one.
What it changes
run-sqlancer.sh --crash-interval S: every S seconds, the script kills every node at once (kill -9) and restarts them all, which recovers the database from its automatic snapshots and its synchronous command log.<commandlog synchronous="true"/>.crash.logrecords each crash and recovery with its time, and each node's recovery output goes underservers/node<i>/recover<i>-<n>.log.--kill-intervalor--resize-interval.--crashes true(provider option): the errors of a crash are handled as a killed node's, and a new connection waits up to 660 s for the recovery.oracle/VoltDBDurabilityOracle): counts every table on the cluster and on the mirror, which never crashes, and compares them. An acknowledged change lost in a crash fails it, and so does a table recovery did not bring back. Without--mirrorit skips every check.Bugs found
None. A control run with the command log turned off failed 3 of 4 databases within 5 minutes, so DURABLE does see lost writes.
Testing
mvn verify(checkstyle, PMD, formatter) passes.Lab builds ENG-30396: export gap fills, the HTTP target held across a kill (milestone 45) #44 and ENG-30396: the LOGIN oracle, users changed online and refused logins (milestone 46) #45 of
matrix-systemtest-apprunner-sqlancer(branch jobENG-30396-sqlancer-nightly, replays with milestone 29's Jenkinsfile andrun-jenkins-sqlancer-test.sh) ran the head of the stack, milestone 29 (fork commits 94d6cc9 and ee48042), which contains this milestone. Each run was 45 minutes on 16.1.0-SNAPSHOT, beside one node of 16.0.0.