Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix race in memberlist.MakeChange #16

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Fix race in memberlist.MakeChange #16

merged 1 commit into from
Nov 19, 2024

Conversation

dnr
Copy link
Member

@dnr dnr commented Nov 18, 2024

What was changed

Change locking in MakeChange to include m.local, and avoid making a copy.

Why?

Fix race, make more efficient.

Checklist

  1. How was this tested:
    unit tests, will be tested in temporal server tests

@dnr dnr merged commit e505ebd into temporalio:master Nov 19, 2024
2 checks passed
@dnr dnr deleted the race1 branch November 19, 2024 00:15
dnr added a commit to temporalio/temporal that referenced this pull request Nov 19, 2024
## What changed?
Pick up race fix from temporalio/ringpop-go#16

## Why?
fix rare data race

## How did you test it?
will be tested in CI, release validation

## Potential risks
low, the previous code already obtained the same rlock on the same path,
so there shouldn't be any risk of new deadlocks
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