Skip to content

ENG-30396: VoltDB provider, milestone 4: run script - #4

Closed
jwiebema1 wants to merge 2 commits into
ENG-30396-sqlancer-m3from
ENG-30396-sqlancer-m4
Closed

jwiebema1 wants to merge 2 commits into
ENG-30396-sqlancer-m3from
ENG-30396-sqlancer-m4

Conversation

@jwiebema1

Copy link
Copy Markdown

Milestone 4 of ENG-30396: one script that starts a VoltDB cluster, runs SQLancer for a set time with a fixed seed, and saves logs and reproductions. Stacked on #3 (milestone 3), which is stacked on #2 and #1; review those first.

What it adds

  • voltdb/run-sqlancer.sh:
    1. Starts a VoltDB cluster on this machine from a kit or build (--voltdb). Any node count, k-safety and sites per host; one node with 8 sites per host by default.
    2. Runs SQLancer against it for --duration seconds with --seed (both NoREC and TLP WHERE by default).
    3. Stops the cluster and saves one results directory, sqlancer-<UTC time>-seed<N>/, following the plan's shared results layout:
      • summary.txt: PASS or FAIL, with each failure's oracle report.
      • manifest.txt: SQLancer commit, VoltDB version, Java, cluster shape and ports, oracles, seed, duration and command line.
      • servers/node<i>/: every node's volt.log, plus its init and start output.
      • sqlancer/: SQLancer's output and logs.
      • reproductions/: the failing databases' logs; with --use-reducer, the reduced ones and the reduction steps.
  • Exit code: 0 PASS, 1 FAIL, 2 setup error. A run fails if SQLancer fails, a node is down at the end, or a server log has a FATAL line.
  • Safe to share a machine:
    • Each node uses its own block of ports (--port-base, default 52000), and the script refuses to start if any is busy.
    • It never uses voltdb start --background, which allows one server per user.
    • It stops only processes carrying its own run directory. It shuts down by port only once its own node 0 is up.
    • An interrupt (INT or TERM) stops SQLancer and the cluster at once.
  • CompositeTestOracle fix (shared code). With several oracles it now hands back the failing oracle's reproducer. Before, --use-reducer silently did nothing whenever more than one oracle ran. It also reports the last oracle that ran rather than the last one that passed.
  • Docs. The README gains a "Run everything with one script" section: options, results layout, and what counts as a failure.

Testing

  • mvn verify -DskipTests passes: formatter, checkstyle, PMD, SpotBugs.
  • 3 nodes, k=1, 30 minutes: 8 sites per host, NOREC and TLP_WHERE, --use-reducer, seed 20261104. PASS: no failures, 138,988 checks, no FATAL lines, all nodes up at the end. Run on 2af25be; the later commits only change how the script stops the cluster.
  • 1 node, 30 minutes: 8 sites per host, NOREC and TLP_WHERE, --use-reducer, seed 20261105, head commit 3ffca5d. PASS: no failures, 208,098 checks, no FATAL lines.
  • Failure path: 3 nodes with --avoid-known-bugs false for 2 minutes. FAIL, exit code 1, four reproductions saved. Each was reduced to a few statements (one to a single CREATE TABLE and an INSERT), all known bugs.
  • Busy port: the script refuses to start, with exit code 2.
  • Interrupt: a TERM during the run stops SQLancer and the cluster within a second, with exit code 2 and summary RESULT: ERROR (interrupted).
  • Other sessions' cleanup: the first one-node run was killed at minute 7, along with every other VoltDB on the machine. Another session's killstragglers sent the signal (volt.log: "Database server will shut down due to a control-C or other JVM exit"). The script reported it correctly (FAIL, node0 down). That run was repeated.

Not in this PR

Running on the lab (apprunner or cloudrunner) and a nightly job; those come after review.

voltdb/run-sqlancer.sh starts a local VoltDB cluster (any number of nodes,
k-safety, sites per host, its own ports), runs SQLancer for a set time with
a fixed seed, stops the cluster and saves one results directory: manifest,
SQLancer output and logs, every node's server log, the failing databases'
logs (reduced with --use-reducer) and a PASS/FAIL summary.

CompositeTestOracle now hands back the failing oracle's reproducer, so
--use-reducer works when several oracles run.
…0 is up

If another server took the admin port between the free-port check and
startup, a shutdown by port would reach it. The run's own processes are
always stopped by their directory.
@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-m4 branch November 25, 2026 13:45
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