Skip to content

[Test] Fix WAL gap recovery assertions for lazy multi-writer replay - #18942

Merged
jt2594838 merged 2 commits into
apache:masterfrom
Caideyipi:fix/subscription-wal-pipe-regressions
Oct 21, 2026
Merged

jt2594838 merged 2 commits into
apache:masterfrom
Caideyipi:fix/subscription-wal-pipe-regressions

Conversation

@Caideyipi

@Caideyipi Caideyipi commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Description

testWalGapRecoveryPreservesFollowerBeforePendingBoundary expects a blocked follower to retain a materialized Tablet, but ordered multi-writer replay now keeps the follower as a raw request until it can be emitted. This deterministically fails with expected:<1318> but was:<0>.

Update the test to check that Tablet memory is released after each local ACK, that the blocked follower remains accounted for in consensus request memory, and that conversion follows delivery order. Preserve the final follower-delivery and complete memory-release assertions.

Validation

  • Compiled the original queue and test sources from current origin/master against local reactor dependencies: reproduced the reported failure (10 tests, 1 failure).
  • Compiled and ran the patched upstream queue/test sources with the same dependencies: all 10 tests passed.
  • Spotless passed for the changed module.

@Caideyipi Caideyipi changed the title [Test] Fix stale WAL replay memory and pipe database-count assertions [Test] Fix WAL gap recovery assertions for lazy multi-writer replay Oct 20, 2026
@jt2594838
jt2594838 merged commit 491e392 into apache:master Oct 21, 2026
37 of 39 checks passed
@jt2594838
jt2594838 deleted the fix/subscription-wal-pipe-regressions branch October 21, 2026 02:31
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.

2 participants