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
WARNING: DATA RACE
Read at 0x00c000710098 by main goroutine:
github.com/asynkron/protoactor-go/cluster/identitylookup/disthash.(*Manager).Get()
/..../go/pkg/mod/github.com/asynkron/[email protected]/cluster/identitylookup/disthash/manager.go:75 +0x44
github.com/asynkron/protoactor-go/cluster/identitylookup/disthash.(*IdentityLookup).Get()
Previous write at 0x00c000710098 by goroutine 39:
github.com/asynkron/protoactor-go/cluster/identitylookup/disthash.(*Manager).onClusterTopology()
/..../go/pkg/mod/github.com/asynkron/[email protected]/cluster/identitylookup/disthash/manager.go:69 +0x464
github.com/asynkron/protoactor-go/cluster/identitylookup/disthash.(*Manager).Start.func2()
Env:
MacOS Monterey v12.7.6
MacBook Pro mid 2015
Go v1.23.0
Expected behavior
Process ID creation or retrieval should not lead to race conditions to avoid data inconsistency.
The text was updated successfully, but these errors were encountered:
Do you have any thoughts or updates? I did not dive deep in the code, but I suppose we must sync rdv, before retrieval if an async getter is used, i.e. pm.rdv = clustering.NewRendezvous() -> ownerAddress := pm.rdv.GetByClusterIdentity(identity)
BTW: I noticed that the last commit was quite a time ago, and I wanted to check if the project is still actively maintained.
There is a race condition when getting the process ID right away after the cluster starts. It seems .onClusterTopology() conflicts with cluster.Get().
To Reproduce
Test code:
Cmd to run:
go run -race main.go
Output:
Env:
MacOS Monterey v12.7.6
MacBook Pro mid 2015
Go v1.23.0
Expected behavior
Process ID creation or retrieval should not lead to race conditions to avoid data inconsistency.
The text was updated successfully, but these errors were encountered: