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
My environment is MacOS arm 64. Go 1.23.0, mq-golang 5.6.1. My application works fine with 5.6.0. My application connects to many queue managers and concurrently get messages from queues. I enabled otel and got panic: concurrent map writes.
Thanks for finding that. It's too easy to forget that Go maps are not concurrent-safe (unlike some other languages' collection classes). There's no real workround without code changes. I'll add locking for the next update.
Hello,
My environment is MacOS arm 64. Go 1.23.0, mq-golang 5.6.1. My application works fine with 5.6.0. My application connects to many queue managers and concurrently get messages from queues. I enabled otel and got panic: concurrent map writes.
From the code https://github.com/ibm-messaging/mq-golang/blob/master/ibmmqotel/mqiotel.go line 513, otelGetTraceBefore function writes a new entry to objectOptionsMap defined as a global variable at line 68, without a lock.
Could you please give some advice?
Thank you,
Theewarav
The text was updated successfully, but these errors were encountered: