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

serf: protect field access with lock to avoid potential data race #691

Open
yanke-xu opened this issue May 30, 2023 · 0 comments
Open

serf: protect field access with lock to avoid potential data race #691

yanke-xu opened this issue May 30, 2023 · 0 comments

Comments

@yanke-xu
Copy link

I found a potential data race based on the code analysis. For example, there are two confilicting operations on the field "EventLTime", where the read operation at: serf/delegate.go:223, and the write operation which is protected by the eventLock at: serf/delegate.go:264. Similar to preventing write conflicts on line 264, the two operations may cause a data race.

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

No branches or pull requests

1 participant