Skip to content

[FIXED] Mirror consumer data race#7716

Merged
neilalexander merged 1 commit intomainfrom
maurice/mirror-race
Jan 12, 2026
Merged

[FIXED] Mirror consumer data race#7716
neilalexander merged 1 commit intomainfrom
maurice/mirror-race

Conversation

@MauriceVanVeen
Copy link
Copy Markdown
Member

Follow-up to #7395, since Antithesis still manages to reproduce the data race. Instead of capturing the mirror's WaitGroup outside the goroutine, let's capture it in the goroutine itself which allows to check the mirror config hasn't been removed in the meantime (for example due to a leader change and this server not being leader anymore).

Signed-off-by: Maurice van Veen github@mauricevanveen.com

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
@MauriceVanVeen MauriceVanVeen requested a review from a team as a code owner January 12, 2026 11:11
Copy link
Copy Markdown
Contributor

@sciascid sciascid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@neilalexander neilalexander merged commit 49e9e7b into main Jan 12, 2026
69 of 70 checks passed
@neilalexander neilalexander deleted the maurice/mirror-race branch January 12, 2026 17:32
neilalexander added a commit that referenced this pull request Jan 15, 2026
Includes the following:

- #7704
- #7708
- #7710
- #7709
- #7712
- #7716
- #7720
- #7721
- #7723
- #7728

Signed-off-by: Neil Twigg <neil@nats.io>
neilalexander added a commit that referenced this pull request Jan 15, 2026
Includes the following:

- #7704
- #7708
- #7710
- #7711
- #7709
- #7712
- #7716
- #7720
- #7721
- #7723
- #7728

Signed-off-by: Neil Twigg <neil@nats.io>
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.

3 participants