Repository navigation
Conversation
…ersion through a mirror cluster)
…k the whole cluster)
…), and stop at once when the mirror exits
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 20 of ENG-30396 (tracked in ENG-30581, epic ENG-30580 "SQL Housekeeping"): differential testing against the last release. Stacked on #19 (milestone 19), which is stacked on #18 to #1; review those first.
The nightly job runs the new oracle once VoltDB/internal#6365 is merged; VoltDB/pro#7109 starts the 16.0.0 mirror it needs in
run-jenkins-sqlancer-test.sh.Why
Every other oracle compares VoltDB with itself: a query against a rewritten form of it (NoREC, TLP), against literal values (PQS), against parameters, views, procedures or a changed schema. A wrong result that every form shares goes unseen. Comparing with another version catches what changed between the two, whichever form the query takes: a regression, a fix, or a deliberate change in behavior.
What it changes
--mirror host:port[,...](provider option,VoltDBConnection): the client addresses of a second cluster, normally the last release. Every statement that changes the database (DDL, INSERT, UPDATE, UPSERT, DELETE, and the oracles' own CREATE PROCEDURE and ALTER TABLE) also runs on the mirror, so the two hold the same rows. Leftovers are dropped on both when a database name is reused.oracle/VoltDBDifferentialOracle): runs the same generated query on both clusters and compares the rows as multisets. The query is a SELECT of columns and expressions with a WHERE clause, or a GROUP BY query with aggregates and maybe WHERE and HAVING clauses, over the FROM clauses and joins the other oracles use.--mirror, DIFF skips every check.--use-reducercan reduce it; the reduction replays the statements on both clusters.run-sqlancer.sh --mirror-voltdb DIR [--mirror-license FILE]starts one node of the kit in DIR beside the cluster, on the port slot after the last node's, k=0 with the same sites per host. It passes--mirror, records the mirror's version in the manifest, saves its server log underservers/mirror, and gives up on its shutdown after 120 s, like the cluster's.--mirror-java-home DIRgives the mirror its own JAVA_HOME: 16.0.0 needs Java 17 or 21 and exits at once on the Java 25 the lab agents run the cluster on. A mirror that exits stops the run at once, with the last line of its start log.Bugs found
--avoid-known-bugsis trueNValue::hashCombinethrows in the hash aggregate. DIFF found it in its first trial, on the mirror.No difference between 16.0.0 and 16.1.0-SNAPSHOT turned up in the trials or the lab run.
Testing
mvn verify(checkstyle, PMD, formatter) passes.Local trials against 16.1.0-SNAPSHOT at internal 17c453541b with a 16.0.0 mirror, both built privately, all seventeen oracles,
--use-reducer:Lab:
Lab build ENG-30396: a JDBC export target, STREAMS under node kills, and ENG-30681 (milestone 40) #39 of
matrix-systemtest-apprunner-sqlancer(branch jobENG-30396-sqlancer-nightly, a replay with this milestone's Jenkinsfile andrun-jenkins-sqlancer-test.sh) passed. It ran fork commit 95a239a, the head of milestone 20, with all seventeen oracles, 45 minutes per run, each beside one node of 16.0.0 (from/releases/released, on/opt/oracle_java21):No failed databases, no FATAL lines in server logs, no transient results skipped (ENG-30602). With GEO on one database in four, the runs made 45%, 9% and 28% more queries than milestone 19's (ENG-30396: the XCONFLICT oracle, XDCR conflicts on purpose, and ENG-30679 (milestone 38) #37), mirror included.
The replay before it, ENG-30396: the TASK oracle, scheduled tasks, and ENG-30680 (milestone 39) #38 (ebadf01), failed setup in every run: 16.0.0 exits at once on the agent's Java 25 ("java 17 or 21 required"), and the runs waited 300 s for it. Hence
--mirror-java-home, and the stop at once when the mirror exits.