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 concurrent map iteration and map write error on GetMemberPIDs #260

Merged
merged 1 commit into from Nov 30, 2018

Conversation

dennis-tra
Copy link
Contributor

Hey there,

I received the following error stack trace and it seems to be a locking problem with the GetMemberPIDs function.

fatal error: concurrent map iteration and map write

goroutine 4229872 [running]:
runtime.throw(0xd033c3, 0x26)
	/usr/local/go/src/runtime/panic.go:616 +0x81 fp=0xc4206b5a88 sp=0xc4206b5a68 pc=0x42ad31
runtime.mapiternext(0xc4206b5c38)
	/usr/local/go/src/runtime/hashmap.go:747 +0x55c fp=0xc4206b5b18 sp=0xc4206b5a88 pc=0x408b7c
rs.daimler.com/apptwin/vendor/github.com/AsynkronIT/protoactor-go/cluster.GetMemberPIDs(0xcf8067, 0x1b, 0xb9f600, 0xc436dfa2d0, 0xc42565a300, 0xc4209c5d70)
...

Fixes the following error stack trace:

fatal error: concurrent map iteration and map write

goroutine 4229872 [running]:
runtime.throw(0xd033c3, 0x26)
	/usr/local/go/src/runtime/panic.go:616 +0x81 fp=0xc4206b5a88 sp=0xc4206b5a68 pc=0x42ad31
runtime.mapiternext(0xc4206b5c38)
	/usr/local/go/src/runtime/hashmap.go:747 +0x55c fp=0xc4206b5b18 sp=0xc4206b5a88 pc=0x408b7c
rs.daimler.com/apptwin/vendor/github.com/AsynkronIT/protoactor-go/cluster.GetMemberPIDs(0xcf8067, 0x1b, 0xb9f600, 0xc436dfa2d0, 0xc42565a300, 0xc4209c5d70)

...
@CLAassistant
Copy link

CLAassistant commented Nov 30, 2018

CLA assistant check
All committers have signed the CLA.

@potterdai potterdai merged commit aa58a65 into asynkron:dev Nov 30, 2018
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.

None yet

3 participants