Repository navigation
Conversation
…moves out through the loopback target (milestone 34)
…port run: TTLManager 96 of 132 lines, from 25; LowImpactDeleteNT 52 of 108, from 2)
…-migrate-target, sqlancer_lbt into XS_LBT): expired rows must arrive there, live ones not (milestone 34)
This was referenced Nov 13, 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 34 of ENG-30396 (tracked in ENG-30581, epic ENG-30580 "SQL Housekeeping"). Stacked on #32; review that and the PRs below it first.
Why
Milestone 30's coverage run found the system procedures that remove rows on VoltDB's own initiative never run:
LowImpactDeleteNT(2 of 108 lines),MigrateRowsNT(2 of 109) andTTLManager(25 of 132). Clients cannot call these procedures, so the only way to exercise them is through SQL:USING TTLandMIGRATE TO TARGET.What it changes
XT_ (k, ts, v) USING TTL 2 SECONDS ON COLUMN tswith a randomBATCH_SIZEandMAX_FREQUENCY.XM_ ... MIGRATE TO TARGETwith a shadow table.MIGRATE FROM ... WHERE k < x AND NOT MIGRATING.--loopback-target, the migrated rows come back intoXS_LB. The table's rows andXS_LB's rows must together equal the shadow table's, with no row in both.MIGRATING.--ttl-migrate-target;--exportadds the loopback targetsqlancer_lbt). Half of the TTL checks use a table that migrates its expired rows rather than deleting them. Those rows must reachXS_LBT, and no live row may.tsisWHERE NOT MIGRATING. A TTL table that migrates finds its expired rows only through such an index; with an ordinary index it never migrates them.run-coverage.shruns TTL, and the README documents the oracle.Bugs found
None.
Coverage (master bf8602e3,
run-coverage.sh's export run, 20 minutes, every oracle)TTLManagerLowImpactDeleteNTMigrateRowsNTMigrateRowsBaseTesting
--export: 110 and 105 checks, with the migrations going through the loopback target.mvn verifypasses.matrix-systemtest-apprunner-sqlancer(branch jobENG-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.run-repros.shport wait and TASK's timing fix.