Hi Guillaume,
The following steps worked for me.
ALTER QLOCAL(SYSTEM.CLUSTER.REPOSITORY.QUEUE) GET(DISABLED)
endmqm -w MQG1
strmqm MQG1
At this point if you look in the queue manager AMQERR01.LOG you will see the following two error messages:
AMQ9510E: Messages cannot be retrieved from a queue.
EXPLANATION:
The attempt to get messages from queue 'SYSTEM.CLUSTER.REPOSITORY.QUEUE' on
queue manager 'MQG1' failed with reason code 2016.
AMQ9448E: Repository manager failed. Retry in 10 minutes, queue manager will
terminate in 7200 minutes
EXPLANATION:
Repository manager encountered a severe problem. See the earlier messages in
the queue manager or system error logs for details. The repository manager
will retry the command in 10minutes. If the problem is not rectified in 7200
minutes the queue manager will terminate. Until this problem is rectified no
further cluster management activity will occur, this will affect the
availability of cluster resources accessed or hosted by this queue manager.
- At this point I now had 10 minutes uninterrupted to do the task at hand.
ALTER QLOCAL(SYSTEM.CLUSTER.REPOSITORY.QUEUE) GET(ENABLED)
- And now I can dump the contents of the queue:
qload -m MQG1 -i SYSTEM.CLUSTER.REPOSITORY.QUEUE -f *
- After 10 minutes my repository manager started up again and all was well.
AMQ9449I: The repository manager is restarting following an error.
EXPLANATION:
The repository manager is restarting following an error, see earlier error
messages for details of the failure.
Instead of trying to stop the repository manager, I instead caused the repository manager not be able to successfully start. Small differences, but it worked for me.
Cheers,
Morag
------------------------------
Morag Hughson
MQ Technical Education Specialist
MQGem Software Limited
Website:
https://www.mqgem.com------------------------------
Original Message:
Sent: Fri May 27, 2022 12:47 PM
From: Guillaume GELB
Subject: MQ 9.2.0.5 and SYSTEM.CLUSTER.REPOSITORY.QUEUE
Hello,
Today, I had a surprise regarding QMGR behavior. I won't bother you with the need I had to do the following. I know it's unusal and strictly not recommended, but I had to do it.
I tried to dump the content of SYSTEM.CLUSTER.REPOSITORY.QUEUE but I got a 2042, object in use. I felt strange, because I used to do it one time before in an earlier version on MQ.
So i decided to kill handling process amqrrmfa, direct punishment, qmgr ended unexpectedly. More efficient than killing xma0...
I tried to start -ns, but same conclusion 2042...
Question : Why is it now impossible to clear SYSTEM.CLUSTER.REPOSITORY.QUEUE ?
------------------------------
Guillaume GELB
------------------------------