ibm-messaging / mq-golang

Calling IBM MQ from Go applications
Apache License 2.0
168 stars 60 forks source link

Queue pattern #133

Closed salapat11 closed 2 years ago

salapat11 commented 4 years ago

We have a queue pattern that resolves to ~750 queues. If this pattern is used, we noticed it fails with the error - "mqiPCF.go: Unknown PCF type". When the queue pattern is split into smaller groups, it works. Is this because of the bufSize assigned as here? - https://github.com/ibm-messaging/mq-golang/blob/bf7e7cff9e763e5dac432590cf4964b44089ff18/mqmetric/discover.go#L714

ibmmqmet commented 4 years ago

Not likely to be that - as the code/comments around that area say, the buffer is resized dynamically with retries. I've tried running with 1000 queues in the same pattern and it seems to work fine. (And I can see that buffer being resized.) I'll see if I can add some debug for the next iteration, to get a better idea of what might be happening.

rjseibert commented 3 years ago

I would suggest that #163 resolves this.