|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Please explain fail if quiescing |
« View previous topic :: View next topic » |
Author |
Message
|
MABeatty1978 |
Posted: Thu Sep 28, 2017 6:28 am Post subject: Please explain fail if quiescing |
|
|
Acolyte
Joined: 17 Jul 2014 Posts: 54
|
I understand what the mqoo-fail-if-quiescing option does and its purpose.... but I'm struggling to understand the reasoning for using it.
What is a use case that I would not want to use it?
What is a use case that I would want to use it?
Thank you. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Sep 28, 2017 6:40 am Post subject: Re: Please explain fail if quiescing |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
MABeatty1978 wrote: |
What is a use case that I would not want to use it? |
- you have a badly designed application that absolutely has to finish a large amount of processing (e.g. a file) once it's started because it can't be restarted / rerun
- you really dislike the MQ Admin at your site and don't think he should have complete control over the queue managers he's responsible for
- you think it's fun to have applications in an inconsistent state following a forced closedown and watch everyone trying to recover (and blaming the MQ Admin - see also above)
MABeatty1978 wrote: |
What is a use case that I would want to use it? |
All the time. On all MQI calls. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Sep 28, 2017 7:40 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Quite simply, if the sysadmin issues the endmqm command, do you want your application to be notified - so that it can gracefully end its processing (complete units of work) ? _________________ 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 |
|
 |
MABeatty1978 |
Posted: Thu Sep 28, 2017 7:50 am Post subject: |
|
|
Acolyte
Joined: 17 Jul 2014 Posts: 54
|
bruce2359 wrote: |
Quite simply, if the sysadmin issues the endmqm command, do you want your application to be notified - so that it can gracefully end its processing (complete units of work) ? |
If it doesn't fail, what happens to the message? Will end stay on the queue (assuming persistence) when the qmgr comes back up or will it (could it) be lost. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Sep 28, 2017 8:52 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Fail if quiescing means that the MQI call will receive a reason code and completion code telling you ONLY that the qmgr is quiescing.
Your program should complete UofW's (either MQCMIT or MQBACK, as your business rules dictate) and end the program.
More specifically, if the qmgr is quiescing, AND an MQGET call with MQGMO_FAIL_IF_QUIESCING will NOT deliver a message from the queue. An MQPUT call with MQPMO_FAIL_IF_QUIESCING will not put a message to a queue. So, no message(s) will be 'lost'. _________________ 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|