Repository navigation
Conversation
… 29: export streams) STREAMS puts each row into a stream and a shadow table and checks the stream's materialized view against the same GROUP BY over the shadow table. With --export the streams export to a file target, and after @Quiesce and a graceful shutdown the script checks that the files hold every row the streams got (distinct rows: export is at least once).
…anner fails on one compared with a partitioned table's key; lab build #41), and its reproduction
… (sqlcmd's PATH note), the license for the script reproductions, and time for a crashing server to exit (lab build #42)
…gs over 256 MB are cut and fail the run (ENG-30629: lab build #43's shared outdir made the file target loop, 60 GB of volt.log per node), and its reproduction
…s streams have no export target but with --export, and VoltDB will not resize while one may hold rows; lab build #43)
…rejoin is in progress" (an in-service upgrade's node still rejoining; lab build #43)
…y what is queued before it drops the old tables (ENG-30630: rows for a dropped and recreated DR table pause the stream for good; lab build #43's XDCR run stalled), and its reproduction
…mp, if it has not exited 15 minutes after its duration, and fails the run (lab build #44's first run never ended)
…eam out of step, and an out-of-step stream that exports nowhere starts afresh (lab build #44's kill run: the stream got a row its shadow did not)
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 29 of ENG-30396 (tracked in ENG-30581, epic ENG-30580 "SQL Housekeeping"): streams, their materialized views and export, through the STREAMS oracle; and what lab builds #41 to #44 found in milestones 21 to 28. Stacked on #27 (milestone 28), which is stacked on #26 to #21 and #20 to #1; review those first.
The nightly job's k=2 run exports once VoltDB/internal#6404 is merged; VoltDB/pro#7125 gives
run-jenkins-sqlancer-test.shthe run shape.Why
A stream cannot be read. What goes in comes out only through its materialized views and its export target, so the other oracles never see either. STREAMS checks both against a table that holds the same rows.
What it changes
STREAMS and export
oracle/VoltDBStreamOracle) puts each row into a stream (XS_<db>_ST, partitioned on k) and into a shadow table with the same columns (_SH). The stream's view (_SV, a GROUP BY k, s) must then hold what the same GROUP BY over the shadow table returns.run-sqlancer.sh --export: a file export target (sqlancer, CSV), and the provider gets--export-target sqlancer, so the streams export to it.@Quiesceand shuts the cluster down gracefully, which closes the export files.voltdbroot/sqlancer_export(a relativeoutdir). In one shared directory, two nodes exporting the same stream in the same second name the same file, and the target loops on it (ENG-30629 below).What the lab found in earlier milestones
--ignore=disabled_export. STREAMS's streams have no export target outside--export, and VoltDB will not resize while such a "disabled export target" may hold rows, so every grow timed out (ENG-30396: run-coverage.sh kills and crashes in proportion to the run, and measures TLS (milestone 44) #43). A stream with no target discards its rows, so there is nothing to drain.bingoes on the PATH (sqlcmd's PATH note was in the output);-- platforms: LISTheader (ENG-30551 reproduces on macOS only);Bugs found
--avoid-known-bugsis truevoltdb/repros/ENG-30630.sh.volt.logeach in 45 minutes, until the disk was full. Critical. Reproduction:voltdb/repros/ENG-30629.sh.SubPlanAssembler). Also on 16.0.0. Found by #41's upgrade run. Reproduction:voltdb/repros/ENG-30628.sql.Testing
mvn verify(checkstyle, PMD, formatter) passes.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.