Skip to content

ENG-30396: XDCR with node failures, --xdcr with --kill-interval (milestone 49) - #48

Closed
jwiebema1 wants to merge 2 commits into
ENG-30396-sqlancer-m48from
ENG-30396-sqlancer-m49
Closed

jwiebema1 wants to merge 2 commits into
ENG-30396-sqlancer-m48from
ENG-30396-sqlancer-m49

Conversation

@jwiebema1

Copy link
Copy Markdown

Why

No XDCR run killed a node, so milestone 44's coverage run found the consumer side of XDCR's multi-partition replication barely run: DRConsumerMpCoordinatorImpl had 216 of 880 lines covered, and its failover path (becomeLeader, resubscribing stalled receivers) none.

What it changes

  • --xdcr combines with --kill-interval (and milestone 48's --graceful). The first cluster's nodes are killed or stopped and rejoined as in any kill run, while the second cluster stays up.
  • Node failures on both connections. Each database writes through either cluster, chosen at random, so the provider now handles node failures on the peer connection too.
  • The XDCR oracle allows 180 s, not 60, for the clusters to converge where nodes fail. A rejoined node's partitions catch up on DR only once it has rejoined.
  • run-coverage.sh's XDCR run kills nodes.
  • README: an "XDCR with node failures" section, and the status now says milestone 49.

On the job side (VoltDB/pro#7150, VoltDB/internal#6474), the run spec xN means XDCR with a node of the first cluster killed every N seconds. The nightly XDCR run becomes 3:1:x300:4.

Bugs found

None.

Coverage (run-coverage.sh's 10-minute XDCR run, now with 4 kills and 3 graceful stops, against milestone 44's)

Class or area Milestone 44 Milestone 49
DR and XDCR, lines 52.6% 57.6%
DRConsumerMpCoordinatorImpl 216 of 880 379 of 880
ConsumerDRGatewayImpl 400 of 856 497 of 856
DRConsumerDispatcher 413 of 849 551 of 849
DRNormalPartitionBufferReceiver 388 of 863 460 of 863
DRProducer 876 of 1,517 929 of 1,517

Testing

  • Local, 3 + 3 nodes, k=1, a failure every 90 s, 10 minutes, with NoREC, TLP WHERE, VIEWS, XDCR and XCONFLICT: 3 kills, 2 graceful stops and 5 rejoins. 12 databases converged, XCONFLICT made 215 checks, and no conflict was logged.
  • Coverage run: passed, with 14 databases converged.
  • mvn verify -DskipTests passes.
  • Lab: build Build with a Java 8 compliance level sqlancer/sqlancer#63 of matrix-systemtest-apprunner-sqlancer (branch job ENG-30396-sqlancer-nightly, a replay) ran fork 395a241 and pro script 3bc77434 (3:1:x300:4) against 16.1.0-SNAPSHOT (master kit 400), 45 minutes, all thirty-two oracles. It passed:
    • 4 kills, 4 graceful stops and 8 rejoins, no FATAL line, no failed database;
    • 113 databases converged, and no conflict was logged;
    • 336 XCONFLICT checks: 13 differing keys reported as diverged, and 5 with no divergence logged (ENG-30679, counted).

…interval)

Milestone 44's coverage run found XDCR's consumer-side multi-partition
replication barely run (DRConsumerMpCoordinatorImpl 216 of 880 lines, its
failover not at all), as no XDCR run killed a node. --xdcr now combines with
--kill-interval (and --graceful): the first cluster's nodes are killed or
stopped and rejoined; the second stays up. The provider handles node
failures on the peer connection too, as a database writes through either
cluster, and the XDCR oracle allows 180 s for convergence where nodes fail.
run-coverage.sh's XDCR run kills nodes.
@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-m49 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