ibm-messaging / mq-golang

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

Increase buffer size when discovering objects #163

Closed rjseibert closed 3 years ago

rjseibert commented 3 years ago

Please ensure all items are complete before opening.

What

The discover functionality was noting queues as usage="NORMAL" even when it was verified on the queue manager that usage="XMITQ". There was a startup error message noted in #161.

How

I increased the buffer size when searching for MQ objects on a queue manager.

Testing

I have run unit tests. I also have this changed code connecting to a queue manager with 10,000+ queues (mostly cluster queues).

Issues

Resolves #161 .

ibmmqmet commented 3 years ago

The latest version has what I hope to be a better solution to this problem, rather than simply increasing the buffer size. As well as truncation I suspected that we might have been finding a non-data reply that can come back on some z/OS operations. There should also now be a reasonable amount of trace around the area so if the problem recurs, we have a better chance of determining what's going on.