Skip to content

test: fix flaky reserve worker startup#5384

Open
acud wants to merge 2 commits intomasterfrom
fix-reserve-worker-flake
Open

test: fix flaky reserve worker startup#5384
acud wants to merge 2 commits intomasterfrom
fix-reserve-worker-flake

Conversation

@acud
Copy link
Contributor

@acud acud commented Feb 27, 2026

Description

A data race in the reserve worker's startup was created in a way that it may get scheduled after the dependent tests already started. I've added a channel to synchronize this behavior. The change to node.go can be removed, since it wasn't synchronizing on this before. But I suggest we leave it in there.

This fixes the flakes in the TestReserveEvict and the TestReplaceOldIndex tests.

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