Repository navigation
Conversation
…, shutdown --save) Every node failure and crash was a kill -9, so milestone 44's coverage run found voltadmin stop (@PrepareStopNode, @stopnode), shutdown --save and the restart from the shutdown snapshot never run. With --graceful true (the default), every other --kill-interval failure is a voltadmin stop through another node (stop_node, retried while VoltDB refuses it), then a rejoin; and every other --crash-interval crash is a voltadmin shutdown --save, then a restart that recovers from the shutdown snapshot. The logs and the summary count graceful stops and shutdowns apart from kills and crashes. "Server is paused" and "Server is shutting down" are node-failure errors. ENG-30704 (Minor): a stopped node sometimes logs FATAL partition detection after its shutdown, as the survivors hang up on it before its JVM exits; the FATAL lines it logs after "The database node has been shutdown" are not counted (chaos.excluded).
…ENG-30704, and the coverage numbers
…k runs again after a failover) TASK's ON ERROR STOP check found @statistics TASK showing a stopped task as RUNNING: when the node that ran it was killed, the node that took over started the task again and ran its procedure once more. Filed as ENG-30705 (Major; 16.0.0 too) with repros/ENG-30705.sh; while avoiding known bugs and nodes fail, TASK does not check that state (the row counts still are).
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.
Why
Every node failure and crash the runs made was a
kill -9. Milestone 44's coverage run found the graceful ways down never run:voltadmin stop, through@PrepareStopNodeand@StopNode;voltadmin shutdown --save, which takes a shutdown snapshot;InvocationDispatcherhad 284 of 1,028 lines covered.What it changes
run-sqlancer.sh --graceful true|false(default true).--kill-intervalfailure (the second, fourth, ...) is avoltadmin stopthrough another node, and the node then rejoins as after a kill. The newstop_noderetries while VoltDB refuses the stop, which it does for a few seconds after a rejoin.--crash-intervalcrash is avoltadmin shutdown --save, bounded at 300 s. Then every node restarts and recovers from the shutdown snapshot and the command log.chaos.logandcrash.loghavestop Nandcrash N: every node shut downlines. The summary counts graceful stops and shutdowns apart from kills and crashes.Bugs found
voltadmin stopsometimes logs FATAL partition detection ("fewer than half of the previous servers") after it has shut down. The survivors hang up on it before its JVM exits.chaos.excluded.repros/ENG-30705.shreproduces it at once.Coverage (
run-coverage.sh's 10-minute kill and crash runs, against milestone 44's)InvocationDispatcherdispatchStopNodedispatchPrepareStopNodetakeShutdownSaveSnapshotClientInterfaceThe instrumented build was rebuilt from the same commits (internal bf8602e3, pro 74728eb4) after the macOS /tmp cleanup emptied the old one.
Testing
--saveand 4 recoveries; it passed. Node 0's log shows theSHUTDOWN_...snapshot taken and restored.mvn verify -DskipTestspasses.matrix-systemtest-apprunner-sqlancer(branch jobENG-30396-sqlancer-nightly, replays) against 16.1.0-SNAPSHOT (master kit 400), 45 minutes per run, all thirty-two oracles.--saveand 4 recoveries.