Repository navigation
Conversation
…XDCR convergence) With --xdcr the script starts a second cluster of the same shape and links the two by XDCR. Each database connects to one of the pair, chosen at random, and writes there only; its schema changes run on the other cluster too, and every table becomes a DR table before it holds rows. XDCR compares every table and view of the database on both clusters, retrying for up to 60 s while replication catches up. The script collects XDCR's conflict log, and a conflict fails the run, as no table is written on both sides. A control run with one direction of the link broken failed every database written on that side.
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 23 of ENG-30396 (tracked in ENG-30581, epic ENG-30580 "SQL Housekeeping"): XDCR, and the XDCR oracle, which checks that the two clusters converge. Stacked on #22 (milestone 22), which is stacked on #21 and #20 to #1; review those first.
The nightly job adds an XDCR run once VoltDB/internal#6398 is merged; VoltDB/pro#7119 gives
run-jenkins-sqlancer-test.shthe run shape.Why
XDCR applies each cluster's changes on the other from its binary log, not by running the statements again. A row it drops or applies twice, or a materialized view the other side maintains wrongly from the replicated rows, leaves the two clusters different. No oracle so far reads a second cluster that got its rows this way.
What it changes
run-sqlancer.sh --xdcr: the script starts a second cluster of the same shape on the port slots from 20, and links the two by XDCR, active-active DR: DR id 1 here and 2 there, each with the other's replication ports as its source. It does not mix with--kill-interval,--resize-intervalor--crash-interval.xdcr_conflicts/) into the results, and a conflict fails the run: no table is written on both sides, so there should be none.servers/xdcr<i>/, and a node of it down at the end fails the run.--xdcr host:port[,...](provider option): each database connects to one of the pair, chosen at random, and writes and reads there only. The other is its peer:oracle/VoltDBXdcrOracle): compares every table and materialized view of the database on both clusters as multisets, retrying for up to 60 s while replication catches up, and fails with the rows found on one side only. A split database is skipped.Bugs found
None in this milestone. A control run with one direction of the link broken failed every database written on that side. Milestone 29's lab run then found ENG-30630 here, an XDCR stream that pauses for good (see that PR).
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.