Skip to content

ENG-30396: export gap fills, the HTTP target held across a kill (milestone 45) - #44

Closed
jwiebema1 wants to merge 2 commits into
ENG-30396-sqlancer-m44from
ENG-30396-sqlancer-m45
Closed

jwiebema1 wants to merge 2 commits into
ENG-30396-sqlancer-m44from
ENG-30396-sqlancer-m45

Conversation

@jwiebema1

Copy link
Copy Markdown

Why

When a replica rejoins, it has missed the rows its streams took while it was down. If some export target has not yet acknowledged those rows, the replica fetches them from the other replicas: E3's gap fill. Our targets acknowledge at once, so milestone 44's coverage run found the gap fill never run: E3ClientGapSession, E3ServerGapSession, GapFillResponse and the gap fill messages, 0 of 325 lines.

What it changes

  • voltdb/http-receiver.py takes an optional hold file. While it exists, every request gets 503 and nothing is recorded. The HTTP export client keeps the rows and sends them again later.
  • run-sqlancer.sh --export holds the HTTP target across every other kill, the first included. The hold starts just before the kill and ends 20 s after the node has rejoined; chaos.log has hold N lines. A failed rejoin and the end of the chaos loop remove the hold too.
  • The end count is unchanged: every inserted row must still arrive, none twice. The summary adds the gap fills the servers logged ("Replica hosts filled gaps") and how many kills were held.
  • README: a "Gap fills" section, and the status now says milestone 45.

Bugs found

None.

Coverage (run-coverage.sh's 10-minute export run)

Class Milestone 44 Milestone 45
Gap fill classes 13 of 537 322 of 537
E3ClientGapSession 0 of 105 61 of 105
E3ServerGapSession 0 of 132 71 of 132
GapFillResponse 0 of 88 72 of 88
GapFillMessage 0 of 17 17 of 17
GapFillRequest 0 of 23 21 of 23
Export and streams, lines 32.5% 33.0%

Testing

  • Local, 3 nodes, k=2, 2 sites per host, a kill a minute for 8 minutes, NoREC, TLP WHERE and STREAMS: 8 gap fills over 3 held kills, 3,553 of 3,553 rows exported (913 through HTTP, 923 through JDBC), none twice.
  • Coverage run, 10 minutes: 2 gap fills, 754 of 754 rows, 6 kills and 6 rejoins.
  • Lab: build Integrate SQLite into the CI sqlancer/sqlancer#58 of matrix-systemtest-apprunner-sqlancer (branch job ENG-30396-sqlancer-nightly, a replay) ran fork 37f2218 against 16.1.0-SNAPSHOT (master kit 400), 45 minutes per run.
    • Export (3 nodes, k=2, a kill every 300 s): 4,848 of 4,848 rows exported, 1,270 through HTTP and 1,079 through JDBC, none twice; 2 gap fills over 4 held kills; 8 kills, 8 rejoins.
    • Kill (3 nodes, k=1, a kill every 300 s): 8 kills, 8 rejoins, no database failed, with all thirty-one oracles.
  • Earlier: lab build Log the random seed value sqlancer/sqlancer#57 ran milestone 43's head; this stack's milestone 44 changes only run-coverage.sh, which the lab job does not run.

…s a kill)

Milestone 44's coverage run found E3's gap fill never run (E3ClientGapSession,
E3ServerGapSession, GapFillResponse and the gap fill messages: 0 of 325 lines):
a rejoined replica fills the rows it missed from the others only while they are
still unacknowledged, and every export target acknowledges at once.

With --export, every other kill (the first included) is now made while the HTTP
target refuses rows: http-receiver.py answers 503, unrecorded, while
$cluster/http.hold exists, and the HTTP export client keeps the rows and retries.
The hold starts before the kill and ends 20 s after the node has rejoined, so
the rows written while it was down are unacknowledged when it comes back. The
end-of-run count still requires every inserted row to arrive; the run's summary
adds the gap fills logged ("Replica hosts filled gaps") and the kills held
(hold N lines in chaos.log).

In an 8-minute local run (3 nodes, k=2, a kill a minute): 8 gap fills over 3
held kills, 3,553 of 3,553 rows exported, none twice.
@jwiebema1

Copy link
Copy Markdown
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.

@jwiebema1 jwiebema1 closed this Nov 18, 2026
@jwiebema1
jwiebema1 deleted the ENG-30396-sqlancer-m45 branch November 25, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant