hashicorp / hashicorp/serf

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

Open
#691 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
6.1k
Forks
609
Avg merge
15h 1m
Merged PRs (30d)
3

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.