Repository navigation
Conversation
…a database The oracles now check data that rows were updated, replaced and deleted to reach. UPDATE sets one to three columns, never the partitioning one; DELETE almost always has a WHERE clause; INSERT is sometimes UPSERT into a table with a primary key, which the schema now reads from JDBC metadata. The first trials found ENG-30494 and ENG-30561 again, through UPDATE SET; both are avoided while --avoid-known-bugs is on.
This was referenced Nov 6, 2026
Closed
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 9 of ENG-30396 (tracked in ENG-30581, epic ENG-30580 "SQL Housekeeping"): databases are built with UPDATE, DELETE and UPSERT as well as INSERT. Stacked on #8 (milestone 8), which is stacked on #7 to #1; review those first.
The nightly job runs this once VoltDB/internal#6349 merges; that PR only moves the pin to this branch's head.
Why
Until now every database was built from INSERTs alone. Rows that were updated, replaced or deleted reach the indexes and the storage by other code paths: index maintenance on changed keys, tuple replacement, and holes left by deletes. None of the oracles saw data shaped that way.
What it adds
gen/VoltDBUpdateGenerator:UPDATE t SET c = v [, ...] [WHERE p].gen/VoltDBDeleteGenerator:DELETE FROM t [WHERE p], almost always with a WHERE clause, so a database keeps rows for the oracles.VoltDBSchemareads each table's primary key fromDatabaseMetaData.getPrimaryKeys.--max-num-updates(default 5) and--max-num-deletes(default 2), per database. The new actions run interleaved with the inserts and CREATE INDEX statements, so indexes are built both before and after rows change.VoltDBErrors.addUpdateErrors):CONSTRAINT VIOLATION: VoltDB checks constraints row by row, so evenSET k = k + 1on a uniquekcan fail.Bugs found
Both are new forms of earlier bugs, added as comments, and avoided while
--avoid-known-bugsis on.UPDATE ... SETtakes another assignment's or the WHERE clause's parameter.UPDATE t SET b1 = FALSE, b2 = TRUE WHERE k = 1fails with "BOOLEAN can't be cast as BIGINT". A second UPDATE of the same shape fails once the first's plan is cached. 2 of 4 failed databases in the first trial.(1 = 1)or(1 = 0).Testing
mvn verify -DskipTestspasses: formatter, checkstyle, PMD and SpotBugs.--use-reducer, at c1537f2: 1 node, 81,289 checks, PASS; 3 nodes with k=1, 53,451 checks, PASS. UPDATE, DELETE and UPSERT statements are among those the databases ran.matrix-systemtest-apprunner-sqlancerbuild ENG-30396: SQLancer VoltDB provider, milestone 9: UPDATE, DELETE and UPSERT #9 on jenkins-st:Setup:
SQLANCER_REFc1537f2 and all seven oracles given as parameters, which is the same as this branch's defaults.Kit: releases/one-offs/16.1.0-SNAPSHOT-ENG-30396-sqlancer-nightly/2.
Agent: an
apprunner-lxd6agent (Ubuntu 22.04), JDK 25.Runs: 45 minutes each,
--use-reducer.sqlancer-3n-k1sqlancer-1n-k0