Skip to content

panic in ibmmqotel #218

@theewarav

Description

@theewarav

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions