Skip to content

ENG-30396: a JDBC export target, STREAMS under node kills, and ENG-30681 (milestone 40) - #39

Closed
jwiebema1 wants to merge 1 commit into
ENG-30396-sqlancer-m39from
ENG-30396-sqlancer-m40
Closed

jwiebema1 wants to merge 1 commit into
ENG-30396-sqlancer-m39from
ENG-30396-sqlancer-m40

Conversation

@jwiebema1

Copy link
Copy Markdown

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

Why

Milestone 33's coverage run still found the JDBC export client never run. In lab runs that kill nodes, STREAMS checked little: its loopback stream was never created, and the HTTP target got 1 row.

What it changes

  • JDBC export target. --export adds a JDBC target (sqlancer_jdbc) into a one-node sink cluster of the kit under test, on port slot 19.
    • db2's streams export to it.
    • After @Quiesce, the sink's tables are counted along with the rows of the file and HTTP targets.
  • STREAMS in runs that kill nodes:
    • It creates only the objects the catalog lacks. "Object name already exists" counts as a node failure there, so before this change the loopback stream of db1 and later databases was never created, and their streams got no rows.
    • When a stream falls out of step, it moves on to a stream of the next generation (XS_DB2G1_ST, up to G8), rather than skipping that name for the rest of the run.
    • It counts inserts that failed, were interrupted, or were still running at exit. The end-of-run count accepts any of those rows as exported or not.
    • The file target's rows are counted by distinct I, because after a failover the new leader exports rows again under another site id.

Bugs found

Ticket Issue Workaround while --avoid-known-bugs is true
ENG-30681 JDBC export to VoltDB with createtable delivers no rows. The table it creates has no primary key, but rows are sent by UPSERT; and a FLOAT column fails the CREATE TABLE (DOUBLE PRECISION). Export stalls, and graceful shutdown hangs. Reproduction: voltdb/repros/ENG-30681.sh. Lost data, Blocker. The sink's tables are created beforehand with a primary key, and createtable is false.

Coverage

Milestone 41's coverage run: JDBCExportClient 94 of 129 lines (from 0).

Testing

  • Local export trials with the JDBC sink, with and without kills: every inserted row was exported, counting the in-flight rows allowed for.
  • 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.

…th kills

--export adds a JDBC target (sqlancer_jdbc) into a one-node sink cluster of the
kit under test (port slot 19); db2's streams export to it, and after @Quiesce
the sink's tables are counted with the file and HTTP targets' rows.

ENG-30681 (JDBC export to VoltDB with createtable delivers no rows: UPSERT into
tables without a primary key, and DOUBLE PRECISION for FLOAT):
repros/ENG-30681.sh, and while avoiding known bugs the sink's tables are made
beforehand with a primary key and createtable is false.

STREAMS in runs that kill nodes:
- creates only the objects the catalog lacks, since "object name already
  exists" is a node failure there (the loopback stream of db1 and later was
  never made, and their streams got no rows: HTTP got 1 row in lab runs);
- goes on with a stream of the next generation (XS_DB2G1_ST, up to G8) when a
  stream falls out of step, rather than skipping the name for the run;
- counts inserts that failed, were interrupted or were still running at exit,
  and the end count allows those as exported or not;
- the file target's rows are counted by distinct I: after a failover the new
  leader exports rows again with another site id.
@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-m40 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