Skip to content

ENG-30396: whole-cluster crashes and the DURABLE oracle (milestone 22) - #22

Closed
jwiebema1 wants to merge 2 commits into
ENG-30396-sqlancer-m21from
ENG-30396-sqlancer-m22
Closed

jwiebema1 wants to merge 2 commits into
ENG-30396-sqlancer-m21from
ENG-30396-sqlancer-m22

Conversation

@jwiebema1

@jwiebema1 jwiebema1 commented Nov 10, 2026 •

Copy link
Copy Markdown

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.sh the 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.
    • The deployment turns both on: a snapshot every 2 minutes, and <commandlog synchronous="true"/>.
    • A recovery that takes over 600 s fails the run. crash.log records each crash and recovery with its time, and each node's recovery output goes under servers/node<i>/recover<i>-<n>.log.
    • It does not mix with --kill-interval or --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.
  • DURABLE (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 --mirror it skips every check.
  • Only an interrupted change marks a database diverged now. Before, an interrupted query did too. A crash interrupts many queries, and the databases they belonged to would never be compared again.
  • The summary counts the databases DURABLE compared across a crash ("databases DURABLE compared across a crash").
  • The README: a "Whole-cluster crashes" section, the options, the results files, the nightly table.

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

…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.
@jwiebema1

Copy link
Copy Markdown
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.

@jwiebema1 jwiebema1 closed this Nov 18, 2026
@jwiebema1
jwiebema1 deleted the ENG-30396-sqlancer-m22 branch November 25, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant