Repository navigation
Persist MySQL outbox backoff without poisoning broker outages - #676
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Review of #676: durable backoff for MySQL send failuresI found no blocking issues. I read the diff and the surrounding code in Correctness
Design
Minor, non-blocking
Tests and docs
|
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Disposition of Claude review #676 (comment) on 3e8f638:
Both required reviewers approve this head, and there are no inline threads. Reverified all archived SHA-256 entries successfully at /Users/tom/git/Relayer-evidence/pr-676/3e8f638088a7dd62f88296abe20cf3a9fba8e18a/ (verification log: /Users/tom/git/Relayer-evidence/pr-676/archive-verify.log). No code changed, so validation was not rerun. |
MySQL direct, maintenance and ordered outbox dispatch now retain failed native sends with durable exponential backoff (1 second to 5 minutes). Broker outages no longer dead-letter unordered rows or park ordered keys at the poison limit. Preparation failures and explicit store failure calls retain their existing poison handling.
Closes #668
Part of #646.
Native and existing features: reuse native client send retries, existing MySQL fenced mutations, deliver_at eligibility and ordered head barriers. Source checked at Azure.Messaging.ServiceBus 7.21.0 (AmqpSender.RunOperation), Dekaf 1.27.0 (Kafka-specific OutboxRelayService in-memory backoff), and MySqlConnector 3.0.0 (native command execution and transactions). None persists eligibility for Relayer's multi-transport MySQL rows. D70 records ownership; no in-process send loop, parallel broker scheduling or new schema is introduced.
All native send exceptions remain eligible indefinitely, including permanent rejections: ITransport batch failures have no portable per-row permanent classification. Every claimed row in a failed batch receives backoff. Ordered heads block their lane until eligible. Diagnostic attempts saturate at 30 and still count toward the preparation/explicit failure poison budget; operators repairing a persistent rejection may need to reset attempts and deliver_at. The MySQL reference and option XML comments document these contracts. Also restored missing D68/D69 links in the decision index.
Per-message cost: one stack bool assignment on ordered dispatch; unchanged successful SQL/awaits/allocations, 0 B. Backoff SQL only runs on failures; no benchmark required.
Validation: 132 focused MySQL tests passed across net10.0/net11.0 (DispatchBackoffTests, MaintenanceTests, OrderedDispatchTests, shared ordered/direct contracts and store tests). Real MySQL 8.4 tests cover 12 failures beyond max=1 on direct notifications, maintenance and ordered dispatch, worker replacement, deadlines, saturation, stale/expired/replayed fences, rollback, poison telemetry and successful recovery. Existing explicit poison tests still pass. npm ci and npm run build passed (Node 26); git diff --check passed.
Validation evidence: /Users/tom/git/Relayer-evidence/pr-676/3e8f638088a7dd62f88296abe20cf3a9fba8e18a/ (logs, reports, regression/fixture source, binaries and verified SHA256SUMS; retained outside worktrees).