You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary
We we have a large mdb.json file, say 100+, the dominator binary throws off a data race, when ran under the race detector.
this race condition seems to originate in dom/herd package, where a lot of read/writes are happening in a concurrency unsafe manner in the sub.go file, under methods connectAndPoll.
this originates from the usage of the derived datatype subStatus.
Is there any plan on addressing these data races, and leverage atomic operations for read/writes?
The text was updated successfully, but these errors were encountered:
To reduce lock contention, there are indeed some accesses for this variable which are not locked. The reasoning behind this is that since a status variable is inherently out of date once obtained, it need not be protected by a lock for simply presenting the value on a dashboard. The variable is protected by a lock when updating or if a decision needs to be made when reading it.
Are there any observed bugs due to this, or is this strictly being raised by the race detector?
Summary
We we have a large mdb.json file, say 100+, the dominator binary throws off a data race, when ran under the race detector.
this race condition seems to originate in
dom/herd
package, where a lot of read/writes are happening in a concurrency unsafe manner in thesub.go
file, under methodsconnectAndPoll
.this originates from the usage of the derived datatype
subStatus
.Is there any plan on addressing these data races, and leverage atomic operations for read/writes?
The text was updated successfully, but these errors were encountered: