Repository navigation
redteam: Phase 4 part 3 — the delivery-outage suite - #346
Merged
Merged
Conversation
Rows rt-4-7, rt-11-4, rt-11-5 (docs/redteam-plan.md), all three green solo: - rt-4-7 BLOCKED (15/15, the split verdict): the s3 queue sink holds (RSS slope 70 KiB/s with Garage down 45 s, the outage counted — destS3Parquet/upload/error + s3_dropped_total=8 — and recovery on return, objects 1270 -> 2375); the tcp half's permanent blind measured: counters light immediately, polling continues, the catcher restart changes nothing, only a daemon restart re-dials (#339). - rt-11-4 BLOCKED (14/14): 300,008 thief sockets, victim coverage lag 0 s (parallel per-netns dumps + the 1 s poll-timeout valve), PollTimeout firing every cycle, RSS 29 -> 31 MiB; the amplifier at scale: 211,244 lines/6 s ~ 100x baseline. The walkable budget (XTCP2_MAX_RECORDS=50000) engaged xtcp_poll_degraded_total {level=sample} with victims still at 0 s lag. - rt-11-5 CONFIRMED (16/16): the L2 freeze — a CAP_NET_RAW sibling ARP-blackholes the sink; the Writes keep succeeding locally while SO_SNDBUF absorbs envelopes, then the Write blocks and the whole POLLER FREEZES (no deadline, sync on the poll goroutine) for the retransmit window (~15.4 min at the prod default) with zero error counters and scrape 200. De-poison mid-window = full catch-up, no loss; window closed = counters light + delivery permanently dead. Finding filed as #345. Harness: new static tool arppoison (gratuitous-ARP blackhole, golden frame tests); new deploy axes XTCP2_MAX_RECORDS (the walkable record budget) and XTCP2_SINK_IP (a dedicated docker0 sink alias — poisoning the gateway takes the docker-proxy scrape replies down with it, measured); sockfill's -perPort default (50000) exceeds a stock container's ephemeral range, the scenario pins 20000.
The 20261126 matrix run failed rt-4-3's leg B (admin-cred oversize) with status=OK 3/3 while hand retries answered ResourceExhausted 12/12: a race. The transport's recv-limit kill is arrival-based, but the RPC headers precede the 8MB DATA on a fresh slow-start conn — the handler dispatches on the headers, stores the stream, and a fanned-out record (PollFlatRecords pushes to every stored stream) can beat the frame to the client's first Recv. The kill always follows, so the probe now Recvs until the terminal error instead of sampling the first message. Re-verified solo 11/11; the matrix stands at 32/33 + this fix.
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.
Phase 4 part 3 — the delivery-outage suite
Rows rt-4-7, rt-11-4, rt-11-5. All three green solo; the full-matrix regression (33 scenarios) runs alongside this PR.
Verdicts
xtcp_poll_degraded_total{level="sample"}with victims still unlagged; the amplifier at scale: 211,244 lines/6 s ≈ 100× baselineThe pinned product finding (S2, #345)
flushEnveloperuns on the poll goroutine andtcpDest.Sendis a blockingconn.Writewith no write deadline. A delivery-path stall (ARP blackhole, wedged broker, stalled switch) therefore freezes collection, not just delivery — silently. Fix direction:SetWriteDeadline+ decouple the flush from the poll goroutine.Harness
XTCP2_MAX_RECORDSdeploy axis — a walkable-maxRecordsPerPollbudget (rt-11-4's valve half)XTCP2_SINK_IPdeploy axis — a dedicated docker0 sink alias so the L2 kill leaves the gateway path clean (poisoning 172.17.0.1 itself takes the docker-proxy scrape replies down with it — measured, probe 2026-11-25)-perPortdefault (50000) exceeds a stock container's ephemeral range — the scenario pins 20000