Author |
Message
|
krypton |
Posted: Mon Apr 03, 2017 5:52 am Post subject: when the channel sequence number goes into mismatch state. |
|
|
 Disciple
Joined: 14 Mar 2010 Posts: 186
|
Hi Experts,
We are writing a script where on the Receiver end of channel, whenever the channel goes into "Retrying" state because of Seq Number mismatch, the script would reset the sequence number of receiver channel to the sequence number of Sender channel.
my question is whether MQ error logs on the Receiver end of channel , would tell the sequence number of Sender channel . i.e. would the error message in the logs would be
Sequence number xxxxx of sender channel , is mismatch with seq number yyyyy of receiver channel.
would that be the error message? _________________ Dreams are not something which you watch when you are asleep,it is something which doesn't let you sleep. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Apr 03, 2017 6:04 am Post subject: Re: when the channel sequence number goes into mismatch stat |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
krypton wrote: |
We are writing a script where on the Receiver end of channel, whenever the channel goes into "Retrying" state because of Seq Number mismatch, the script would reset the sequence number of receiver channel to the sequence number of Sender channel. |
This is a bad idea.
You can *easily* lose messages this way.
Your channels should not go out of sequence on a regular basis. If they are, then someone is taking specific action to cause this, or your network admins have configured things to drop long running connections.
You need to identify and fix these issues, not say "Oh, this is an easy fix, I'll just ignore any errors and make it work again."
As to what the error message would be, and what it would contain, then 1) look up the error messages in the InfoCenter and read the descriptions of them. 2) try to create the problem on a test setup and see what happens... 3) fix the real problem instead of trying to guess how to put a bandaid over it and lose messages... _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
zpat |
Posted: Mon Apr 03, 2017 6:10 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Yes, it's like the old aircraft engineers joke:
Pilot tech log entry: Evidence of oil leak on landing gear leg.
Engineer response: Evidence removed. _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
krypton |
Posted: Mon Apr 03, 2017 6:26 am Post subject: |
|
|
 Disciple
Joined: 14 Mar 2010 Posts: 186
|
Quote: |
This is a bad idea.
You can *easily* lose messages this way.
Your channels should not go out of sequence on a regular basis. If they are, then someone is taking specific action to cause this, or your network admins have configured things to drop long running connections.
You need to identify and fix these issues, not say "Oh, this is an easy fix, I'll just ignore any errors and make it work again."
As to what the error message would be, and what it would contain, then 1) look up the error messages in the InfoCenter and read the descriptions of them. 2) try to create the problem on a test setup and see what happens... 3) fix the real problem instead of trying to guess how to put a bandaid over it and lose messages...
_________________ |
Jeff, you are right, reason for this is in the midnight hours if we have a situation where the channel goes out of sync and no one is there to support manually, then the automated script at receiver end would reset the channe. _________________ Dreams are not something which you watch when you are asleep,it is something which doesn't let you sleep. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Apr 03, 2017 6:32 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
If a channel goes out of sync, something is very wrong.
And you can't really troubleshoot it the next morning. Unless your script also does a lot of log gathering and etc.
Again. Figure out why the channel is going out of sync.
It shouldn't. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Vitor |
Posted: Mon Apr 03, 2017 6:37 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
krypton wrote: |
Jeff, you are right, reason for this is in the midnight hours if we have a situation where the channel goes out of sync and no one is there to support manually, then the automated script at receiver end would reset the channe. |
Which means that, when you come into the office in the morning, the channels are running but a mob of business users with pitchforks and burning torches will want to know where their messages are.
As others have said, a channel going out of sequence should never happen in a properly working environment. If it happens (even overnight) frequently enough that it's worth scripting then something is wrong at your site. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
zpat |
Posted: Mon Apr 03, 2017 7:22 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Vitor wrote: |
a mob of business users with pitchforks and burning torches will want to know where their messages are. |
I think I might take Ohio off my travel plans then....still a bit too much like the 18th century.  _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Apr 03, 2017 7:26 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
zpat wrote: |
Vitor wrote: |
a mob of business users with pitchforks and burning torches will want to know where their messages are. |
I think I might take Ohio off my travel plans then....still a bit too much like the 18th century.  |
I was thinking of 2 sites in Manchester and one in Scotland. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Apr 03, 2017 7:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
zpat wrote: |
I think I might take Ohio off my travel plans then.... |
Also we host this really great conference here at the end of September.
(You're welcome Roger) _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Apr 03, 2017 7:56 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I do quite recommend Roger's conference in Ohio.
If only for a chance to buy Vitor some bourbon... _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Apr 03, 2017 6:07 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
mqjeff wrote: |
I do quite recommend Roger's conference in Ohio.
If only for a chance to buy Vitor some bourbon... |
He had his chance last year.
So I shrugged and bought another for me self instead. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Apr 04, 2017 4:44 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
PeterPotkay wrote: |
mqjeff wrote: |
I do quite recommend Roger's conference in Ohio.
If only for a chance to buy Vitor some bourbon... |
He had his chance last year.
So I shrugged and bought another for me self instead. |
Wait... You *asked* him if he wanted some bourbon? That was your mistake...
:innocent" _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Vitor |
Posted: Tue Apr 04, 2017 5:19 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
PeterPotkay wrote: |
He had his chance last year. |
Yeah, yeah, we had budget problems.
The problems were no budget and no budget (a problem so serious I thought it deserved to be mentioned twice)
PeterPotkay wrote: |
So I shrugged and bought another for me self instead. |
Solid plan. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|