fix: configurable cluster log-channel term length (oms#73 CI starvation)#102
Merged
Conversation
…rvation) The consensus LOG channel was the one channel TRANSPORT_TERM_LENGTH never reached: Aeron's LOG_CHANNEL_DEFAULT (term-length=64m) applied regardless, and every follower catch-up replay mapped + zero-faulted a fresh non-sparse 192MB (3x64m) buffer. On small CI runners the election/rejoin window spends whole connect-timeouts faulting buffers, surfacing as ReplaySession 'no connection established' storms and the openexch/oms#73 e2e failures (both 'no new leader' and 'node0 never rejoins' modes). New TRANSPORT_LOG_TERM_LENGTH / transport.log.term.length knob, default 64m = prod behavior unchanged. The oms e2e harness sets it to 4m: verified locally, peak e2e /dev/shm 1443MB -> 900MB, 192MB buffers gone, suite green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
emrebulutlar
force-pushed
the
fix/oms73-log-term-length
branch
from
July 7, 2026 19:28
8da84f0 to
e1b7056
Compare
emrebulutlar
added a commit
that referenced
this pull request
Jul 10, 2026
…the oms#73 fix) (#127) Archive.Context.replicationChannel and ConsensusModule.Context.replicationChannel both built endpoint-only URIs, so Aeron's 64m default term-length applied to every replication/catch-up replay regardless of TRANSPORT_LOG_TERM_LENGTH. Same starvation class as oms#73: on small hosts (CI runners) a rejoining node maps a fresh non-sparse 3-term buffer per replay and elections time out - match PR #102 fixed the log channel but left both replication channels on the default. This is the root cause of the oms e2e failures (ArchiveException: no connection established for replayChannel=...term-length=64m). Prod behavior unchanged: logTermLength() defaults to 64m; CI sets the env knob. Claude-Session: https://claude.ai/code/session_012ddjgSUkUdVdBtBh4b2hde Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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.
Companion to openexch/oms#73 (e2e failover suite red on CI).
Mechanism
TRANSPORT_TERM_LENGTHnever covered the consensus LOG channel: match never setslogChannel, so Aeron'sLOG_CHANNEL_DEFAULT(aeron:udp?term-length=64m) applied. Follower catch-up replay inherits it, so every replay attempt maps and zero-faults a non-sparse 192MB (3×64m) buffer, lingering 5s on failure. On a small CI runner the election window degenerates into ReplaySessionno connection establishedstorms — the signature of both oms#73 failure modes (no new leader after kill; node0 never rejoins).Change
TransportConfig.logTermLength()— envTRANSPORT_LOG_TERM_LENGTH/ proptransport.log.term.length, default 64m = prod behavior unchanged.AeronClustersetsconsensusModuleContext().logChannel(aeron:udp?term-length=<value>)next to the other env-driven channel config.Evidence (local, 24-core box)
TRANSPORT_LOG_TERM_LENGTH=4m: peak 900MB, largest file 48MB (16m IPC buffers), suite PASS.The oms harness PR (follows) sets 4m for e2e; its CI run builds match from main and is the end-to-end validation.
🤖 Generated with Claude Code