Skip to content

kfake: fix 848 test flake under race detector#1262

Merged
twmb merged 1 commit intomasterfrom
tfix
Feb 22, 2026
Merged

kfake: fix 848 test flake under race detector#1262
twmb merged 1 commit intomasterfrom
tfix

Conversation

@twmb
Copy link
Owner

@twmb twmb commented Feb 22, 2026

Bump session timeout from 500ms to 3000ms in Test848SessionTimeout - 500ms was too aggressive under -race, causing heartbeat-late fencing and re-reconciliation cascades during initial stabilization.

Also fix consume loop logic where ctx.Err() could fire even when all records were consumed (context expired during the PollRecords that returned the last batch).

Bump session timeout from 500ms to 3000ms in Test848SessionTimeout -
500ms was too aggressive under -race, causing heartbeat-late fencing
and re-reconciliation cascades during initial stabilization.

Also fix consume loop logic where ctx.Err() could fire even when all
records were consumed (context expired during the PollRecords that
returned the last batch).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@twmb twmb merged commit 0b58208 into master Feb 22, 2026
13 checks passed
@twmb twmb deleted the tfix branch February 22, 2026 06:51
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