Author |
Message
|
andrewfemin |
Posted: Mon Apr 01, 2019 7:38 am Post subject: Automatic Queue Creation |
|
|
 Acolyte
Joined: 26 Aug 2017 Posts: 54
|
Hi,
I have two Full Reposities(FR1 & FR2) and two Partial Repositories(PR1 & PR2) in my cluster. An application is connecting to FR1 using a server connection channel and it's sending messages to two cluster local queues that are present in the PRs. During this, we've observed that sometimes, instead of the messages going to the cluster local queues in the PRs, a local queue is created in FR1 and all the subsequent messages are put there. At the same time, nothing is written in the logs either. Can you please help me understand this behaviour?
Thanks |
|
Back to top |
|
 |
Vitor |
Posted: Mon Apr 01, 2019 7:48 am Post subject: Re: Automatic Queue Creation |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
andrewfemin wrote: |
Can you please help me understand this behaviour? |
A bug in the application code is causing the "addressing" of the message to be specifically the FR queue manager and in response the FR creates the needed queue and puts the messages to that, not the PR versions. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
andrewfemin |
Posted: Mon Apr 01, 2019 8:08 am Post subject: |
|
|
 Acolyte
Joined: 26 Aug 2017 Posts: 54
|
Thanks Vitor. Just to confirm, by "application code" you mean the client application, right? Also, can you please point me to some documentation on the MQ Queue auto creation? I tried and couldn't find any. May be I'm not searching right. |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Apr 01, 2019 8:58 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
An application that MQOPENs a QModel definition will create a queue dynamically - what seems to you to be automatic. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
mvic |
Posted: Mon Apr 01, 2019 12:02 pm Post subject: Re: Automatic Queue Creation |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
Sounds like a bug to me, probably in the application, but this can't happen "by accident".
Check https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_9.1.0/com.ibm.mq.dev.doc/q026100_.htm
It takes quite some effort to create a dynamic queue (see above page) which is the thing Bruce is mentioning.
You would need to have a model queue on your putter's qmgr of the same name as the remote queues (seems unlikely).
Therefore it seems unlikely a dynamic queue is being created.
It seems unlikely your application is doing this deliberately, but who knows.
It also seems unlikely MQ would do this automatically, because that is not what it does. |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Apr 01, 2019 12:51 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
What local queue is created? Display the queue (with MQExplorer or MQSC). What queue type?
Nothing is written to which logs? Do you mean the AMQERR01.LOG? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
gbaddeley |
Posted: Mon Apr 01, 2019 2:46 pm Post subject: Re: Automatic Queue Creation |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
andrewfemin wrote: |
Hi,
...a local queue is created in FR1 and all the subsequent messages are put there |
Something / someone is creating the local queue on the FR qmgr. MQ is not doing it by itself. Displaying the queue will show the create date/time. Compare its attributes to the same local queue on the PR qmgrs. You could try enabling MQ Command Events to see what is defining the queue. _________________ Glenn |
|
Back to top |
|
 |
hughson |
Posted: Mon Apr 01, 2019 10:25 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
I would concur with all my learned colleagues have already said.
There is nothing in clustering that will create a 'pre-defined' local queue on a FR automatically. If there is a 'pre-defined' local queue of that name on the FR it is because someone defined it there.
Check the definition of the queues in question, and look at DEFTYPE and CRDATE and CRTIME. Perhaps post back here with the DISPLAY QLOCAL(name) output so we can see too?
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
|