-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
appendMap Panic #1648
Comments
What is the panic message that you’re receiving? Like the |
@puellanivis .
|
I don’t know what your problem is, but I know it is going to be somewhere in your own code. I’m taking a stab here, because I don’t know what your code is, but I think there is a map somewhere in the message itself, which is not concurrent safe like Another common read/write race condition can happen when you’re attempting to marshal a message at the same time as accessing it. You need to ensure you are only doing the one or the other at any given time. |
As @puellanivis explained, almost certainly the issue is within your code. You can use Go’s race detector to locate the issue: https://go.dev/blog/race-detector I’ll close this issue as it’s not a Go Protobuf issue. |
Go Version
protoc Version
Log
For services that operate on the background, Store/Load is performed through SyncMap, etc
When the gRPC Call comes, the corresponding sync.Map will go around the Range and check it.
I'm getting Panic from AppendMap intermittently when I'm doing that... Is it my code error?
The text was updated successfully, but these errors were encountered: