Skip to content

ENG-30396: the IMPORT oracle, lab build #53's fixes, ENG-30682 and ENG-30683 (milestone 41) - #40

Closed
jwiebema1 wants to merge 5 commits into
ENG-30396-sqlancer-m40from
ENG-30396-sqlancer-m41
Closed

jwiebema1 wants to merge 5 commits into
ENG-30396-sqlancer-m40from
ENG-30396-sqlancer-m41

Conversation

@jwiebema1

Copy link
Copy Markdown

Milestone 41 of ENG-30396 (tracked in ENG-30581, epic ENG-30580 "SQL Housekeeping"). Stacked on #39; review that and the PRs below it first.

Why

Milestone 30's coverage run found importers never run: the importer framework (ImportManager) and the socket importers were at 0. This milestone also takes in what lab build #53 found.

What it changes

  • The IMPORT oracle (pull socket importer).
    • With IMPORT among the oracles, run-sqlancer.sh configures the pull socket importer (CSV, into XI.insert) on four ports of port slot 18. The nodes share the ports out through ChannelDistributer.
    • SQLancer listens on the ports (--import-ports). Each check sends lines with unique keys through one port and waits until XI holds them with their values, reading through both clusters in an XDCR run. XI must hold no more rows than were sent.
    • The importer delivers at most once, so lines lost where nodes fail, resize, crash or upgrade are counted, not failed.
    • The XDCR peer, the mirror and the JDBC sink import nothing.
  • Lab build ENG-30789: the SQLCMD oracle: queries through sqlcmd as well as JDBC (milestone 58) #53's failures:
    • XCONFLICT: in the lab (x86), inserts racing upserts also diverge silently (ENG-30679). While avoiding known bugs, a key left different with no divergence logged is counted, not failed, and checks delete again.
    • CONFIG checks nothing in runs that resize (ENG-30682) or upgrade (ENG-30683).
  • Reproductions:
    • ENG-30673.sql (crash) now runs on Darwin only. The new ENG-30673-linux.sql checks the Linux symptom: the row is gone.
    • ENG-30664 runs on Darwin only.
    • ENG-30679.sh prints run-sqlancer.sh's log when the XDCR pair does not start.
  • XDCR runs:
    • SNAPSHOT checks nothing: restores stop the replication of other tables for a while, and that is not yet reduced to a reproduction.
    • TTL makes no migration checks.
    • IMPORT reads XI through the peer as empty until its DDL reaches the peer.

Bugs found

Ticket Issue Workaround while --avoid-known-bugs is true
ENG-30682 A node that joins elastically while @SetYamlConfiguration changes are made misses some of them for good: it reports, and runs with, other system settings than the rest of the cluster. Found in lab build #53's resize run. Reproduction: voltdb/repros/ENG-30682.sh. Critical. CONFIG checks nothing in runs that resize.
ENG-30683 During a rolling upgrade from 16.0.0, @SetYamlConfiguration through a node already on 16.1 fails: "The UpdateDeployment system procedure requires exactly two parameters". Found in lab build #53's upgrade run. Reproduction: voltdb/repros/ENG-30683.sh, marked manual: because it needs a 16.0.0 kit. Major. CONFIG checks nothing in runs that upgrade.
ENG-30679 (comment) The silent divergence also happens without deletes on x86. As above.

Coverage (run-coverage.sh, master bf8602e3, every oracle; the resize run is invalid)

Area or class Lines
System procedures 46.6%
DR and XDCR 51.6%
Export and streams 31.8%
ChannelDistributer 182 of 263
SslSetup 18 of 348 (the next milestone's target)

Testing

  • Local trials:
    • 2–5 minutes, 3 nodes (k=1, 4 sites per host), beside NoREC: 40,308 lines imported with no failures.
    • With kills: lost lines counted, none duplicated.
    • XDCR: passed after the fixes above.
  • mvn verify passes.
  • Lab: builds Add random seed to log sqlancer/sqlancer#56 and Log the random seed value sqlancer/sqlancer#57 of matrix-systemtest-apprunner-sqlancer (branch job ENG-30396-sqlancer-nightly, replays with these settings). They ran 16.1.0-SNAPSHOT (master kit 400) beside one node of 16.0.0, 45 minutes per run, with all thirty-one oracles.
    • Build Add random seed to log sqlancer/sqlancer#56 ran fork 585fbb8, milestones 34 to 43 before the last fix.
      • Reproductions: 84 still broken. ENG-30611 reports fixed, and the ticket is closed as fixed in V16.1.0.
      • Kill (3 nodes, k=1, a kill every 300 s): 8 kills, 8 rejoins.
      • Security (1 node, over TLS): PERMS checked 153 allowed and 174 refused statements; TASK made 286 checks.
      • Export with a kill every 300 s (3 nodes, k=2): all 4,617 rows exported, 1,240 through HTTP and 1,120 through JDBC (one twice).
      • Resize every 120 s: 10 grows, 9 shrinks.
      • XDCR: 340 XCONFLICT checks and 115 databases compared after convergence. 24 differing keys had no divergence logged; that is ENG-30679, counted rather than failed.
      • Crash every 600 s: 4 crashes, 4 recoveries.
      • Upgrade from 16.0.0 failed. A node being stopped for its upgrade refused DDL. The next fork commit handles this; see milestone 43.
    • Build Log the random seed value sqlancer/sqlancer#57 ran the upgrade run alone on fork e0cadfe, the head: 3 of 3 nodes upgraded, 414 TASK checks, 612 STATS calls and 15,923 primary key indexes checked.
    • Earlier builds: ENG-30789: the SQLCMD oracle: queries through sqlcmd as well as JDBC (milestone 58) #53 to Bump maven-surefire-plugin from 2.19.1 to 2.22.2 sqlancer/sqlancer#55 ran earlier heads of this stack. Their failures led to ENG-30682, ENG-30683, the ENG-30679 changes, the run-repros.sh port wait and TASK's timing fix.

With IMPORT among the oracles, run-sqlancer.sh configures the pull socket
importer (CSV, into XI.insert) on four ports of port slot 18, which the nodes
share out through ChannelDistributer; the XDCR peer, mirror and JDBC sink
import nothing. SQLancer listens on the ports (--import-ports), and each check
sends lines with unique keys through one, waits until XI holds them with their
values (through both clusters of an XDCR run), and checks XI holds no more rows
than were sent. Lines lost where nodes fail, resize, crash or upgrade are
counted, not failed (the importer delivers at most once).
…0682)

- XCONFLICT: in the lab (x86) inserts racing upserts diverge silently too
  (ENG-30679), so while avoiding known bugs a key left different with no
  divergence logged is counted, not failed, and checks delete again.
- CONFIG: a node that joins while settings change misses some of them for good
  (ENG-30682, repros/ENG-30682.sh); while avoiding known bugs, CONFIG checks
  nothing in runs that resize.
During a rolling upgrade, @SetYamlConfiguration through a node already on 16.1
fails ("requires exactly two parameters"); repros/ENG-30683.sh (manual: it
needs a 16.0.0 kit), and while avoiding known bugs CONFIG checks nothing in
runs that upgrade.
- ENG-30673 loses the row on x86 Linux rather than crashing on the next DDL, and
  its check matched any one-row result: ENG-30673.sql (crash) runs on Darwin,
  ENG-30673-linux.sql (the row is gone) on Linux.
- ENG-30664 does not reproduce on Linux (lab builds #52, #53) and crashes 3 times
  in 4 on macOS: Darwin only.
- ENG-30679's script prints run-sqlancer.sh's log when the XDCR pair does not
  start (an ERROR in lab build #53).
Milestone 41's coverage run found the XDCR run's databases no longer converging:
SNAPSHOT's restores stop the replication of other tables for a while (the DR
consumer reconnects; not yet reduced to a reproduction), so SNAPSHOT checks
nothing in an XDCR run; TTL's migration checks keep the migrated rows by
database name, which may work through either cluster, so there are none in an
XDCR run; IMPORT reads XI through the peer as empty until its DDL reaches it.
Also a fully qualified name PMD flagged.
@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-m41 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