Repository navigation
Conversation
…row and shrink while SQLancer runs) Every S seconds the script adds k+1 nodes with voltdb start --add, or removes them again with voltadmin resize, by turns. A join refused during a catalog update is retried; a grow is done once the topology has settled, a shrink once the removed servers have exited, and a step that takes over 600 s fails the run. The provider gets --resizes true (a shrink drops the calls in flight on the removed hosts, as a kill does) and --ddl-hold: DDL waits while the script holds it around each shrink, as a table dropped during the remove's index snapshot hangs the remove for good (ENG-30622). The connection retries the JDBC metadata calls that time out during an elastic join (ENG-30229).
…annot move rows that share one; lab build #40)
This was referenced Nov 10, 2026
This was referenced Nov 7, 2026
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 21 of ENG-30396 (tracked in ENG-30581, epic ENG-30580 "SQL Housekeeping"): elastic resizes in the middle of a run. Stacked on #20 (milestone 20), which is stacked on #19 to #1; review those first.
The nightly job adds a run with resizes once VoltDB/internal#INTERNAL_PR is merged; VoltDB/pro#PRO_PR gives
run-jenkins-sqlancer-test.shthe run shape.Why
Node failures (milestone 12) move partition leaders between nodes that already hold the data. An elastic resize moves the data itself: a join adds a partition group and migrates rows into it, and a remove migrates them back and drops it. The oracles keep checking query results while that happens, so a row lost, doubled or read from the wrong partition during a migration fails the run.
What it changes
run-sqlancer.sh --resize-interval S: every S seconds, the script adds k+1 nodes withvoltdb start --add, or removes them again withvoltadmin resize, by turns. It does not mix with--kill-interval.add<n>-<j>-rejected<a>and tries again, up to 10 times. A grow is done once the new nodes have started and the topology has settled (voltadmin resize --testplans to remove only them, about 40 s after the join).resize.logrecords each step; the added nodes' logs go underservers/add<n>-<j>/.--resizes true(provider option): a shrink drops the calls in flight on the hosts it removes, so the provider expects the errors of a killed node. The--node-failuresworkarounds for ENG-30612 do not apply.--ddl-hold FILE(provider option): while the file exists,VoltDBConnectionholds every DDL statement, for up to 15 minutes. The script creates it 3 s before each shrink and deletes it once the shrink is done, which works around ENG-30622 below. With--avoid-known-bugs falsethe provider ignores it.@SystemInformationand@SystemCatalogtime out after 60 s ("OPS request hit sixty second timeout", "Too many pending stat requests"). The driver'sgetMetaData()andDatabaseMetaDatacalls send those, and SQLancer reads the schema with them.--resizes, the table and index generators make no ASSUMEUNIQUE constraint or index.run-sqlancer.shon macOS: BSDseq -s '|'ends the list with the separator, which made an empty alternative in the regex that tells when a grow has settled.Bugs found
--avoid-known-bugsis truevoltadmin resize --statusstays at "Planning data migration". Also on 16.0.0. Found by a local trial in which SQLancer's cleanup of an old database dropped its tables during a shrink. A 50-line script reproduces it within 4 cycles. Critical.--ddl-hold).Testing
mvn verify(checkstyle, PMD, formatter) passes.--use-reducer, seed 2104.Lab builds ENG-30396: export gap fills, the HTTP target held across a kill (milestone 45) #44 and ENG-30396: the LOGIN oracle, users changed online and refused logins (milestone 46) #45 of
matrix-systemtest-apprunner-sqlancer(branch jobENG-30396-sqlancer-nightly, replays with milestone 29's Jenkinsfile andrun-jenkins-sqlancer-test.sh) ran the head of the stack, milestone 29 (fork commits 94d6cc9 and ee48042), which contains this milestone. Each run was 45 minutes on 16.1.0-SNAPSHOT, beside one node of 16.0.0.--ignore=disabled_exporttovoltadmin resize.