One of our publisher clients recently reported error, MQRC_PUBLICATION_FAILURE. This occurred twice and then the problem resolved itself. After reading about the error (https://www.ibm.com/docs/en/ibm-mq/9.0?topic=codes-2502-09c6-rc2502-mqrc-publication-failure) I see it comes from a failure at one or more of the subscribers.
In our case the subscribers are internal MQ administrative subscriptions. We are using a pattern where a publisher puts a message to a topic that is then copied to four queues by the queue manager. The definitions look something like this:
DEFINE TOPIC('MY_TOPIC') TOPICSTR('my-topic') DEFPSIST(YES) REPLACE
DEFINE SUB('MY_TOPIC_1') TOPICSTR('my-topic') DESTCLAS(PROVIDED) DEST('Q_1') PUBPRTY(ASPUB) REPLACE
DEFINE SUB('MY_TOPIC_2') TOPICSTR('my-topic') DESTCLAS(PROVIDED) DEST('Q_2') PUBPRTY(ASPUB) REPLACE
DEFINE SUB('MY_TOPIC_3') TOPICSTR('my-topic') DESTCLAS(PROVIDED) DEST('Q_3') PUBPRTY(ASPUB) REPLACE
DEFINE SUB('MY_TOPIC_4') TOPICSTR('my-topic') DESTCLAS(PROVIDED) DEST('Q_4') PUBPRTY(ASPUB) REPLACE
The topic is persistent and the value of PMSGDLV is set ASPARENT, which in our case is ALLDUR. As I understand the error the publish failed for at least one of the subscribers. Even though the problem resolved I would like to better understand the issue.
What are some possible reasons this would occur with these types of subscriptions? I did notice that one of the queues had reached its max depth. Would that condition triggered the failure?
Thanks,
Jim
------------------------------
Jim Creasman
------------------------------