ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Heartbeat

Post new topic  Reply to topic
 Heartbeat « View previous topic :: View next topic » 
Author Message
mikedavis
PostPosted: Wed Apr 27, 2005 6:02 am    Post subject: Heartbeat Reply with quote

Newbie

Joined: 11 Apr 2005
Posts: 8

I've had an issue where a channel is out of sequence, but one end is not aware until the other end tries to send a message (then the error is generated)

Will using the heartbeat command generate an out of sequence error if there is one, or is there a better way to test for this?

Also, all channels have the discint(0) set... probably not a good thing

Thanks
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Wed Apr 27, 2005 8:03 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Quote:
Will using the heartbeat command generate an out of sequence error if there is one, or is there a better way to test for this?


I don't think that Heartbeat effects the sequence numbers.

Quote:
Also, all channels have the discint(0) set... probably not a good thing


That depends who you ask. Personally I think it is a bad thing for several reasons, not least of which is the one effecting you right now i.e If a network error occurs sequencing issues can arise. All of our channels are triggered and we have a disconnect interval set of around about 10 minutes. If an application can't wait the extra second or two that triggering costs you then I would argue that it shouldn't be using MQ. MQ has been designed as an asynchronous methodology.

I believe that MQ is a victim of it's own success in terms of ease of use and reliability so people think that it can be used for synchronous communication without much design thought....That leads to more 'issues' here than I care to mention.
Back to top
View user's profile Send private message
csmith28
PostPosted: Wed Apr 27, 2005 8:08 am    Post subject: Re: Heartbeat Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

mikedavis wrote:
I've had an issue where a channel is out of sequence, but one end is not aware until the other end tries to send a message (then the error is generated)

Will using the heartbeat command generate an out of sequence error if there is one, or is there a better way to test for this?


No.

Quote:
Also, all channels have the discint(0) set... probably not a good thing.


Neither good nor bad especially if you want the channels to always be up but if there is an interuption in connectivity it is possible that the Receiver MCA is commiting a message that the Sender MCA has backed out upon recovery of he connection causing the mis-match in SEQNO's.
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
mikedavis
PostPosted: Wed Apr 27, 2005 8:56 am    Post subject: Reply with quote

Newbie

Joined: 11 Apr 2005
Posts: 8

So I guess sending a 'dummy' message every 10 minutes or so is probably the best way to 'trap' out of sequence errors
Back to top
View user's profile Send private message
csmith28
PostPosted: Wed Apr 27, 2005 9:19 am    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

Not really.

If the Sender/Receiver MCA's stay connected you shouldn't have a problem. If something interrupts the connection when there are no messages in flight, you shouldn't have a problem.

In most instances, it is only when the connection is interrupted while message or messages are in flight that the CURSEQNO's can get out of sync. Even then it only happens if the connection is interrupted at a certain point in the MCA's communications when the Sending MCA's is waiting for confirmation from the receiving MCA that the messages have been commited.

At times like this the Receiver increments it's CURSEQNO and sends it's confirmation back to the Sender but the Sending MCA never recieves it. So when the Sender starts up after the connection failure during it's recovery process it is under the impression that it needs to send that message or messages again because it never got the confirmation.

So sending a test message over the channel every 10 mins prolly wouldn't do you much good.
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.


Last edited by csmith28 on Wed Apr 27, 2005 9:23 am; edited 1 time in total
Back to top
View user's profile Send private message
mikedavis
PostPosted: Wed Apr 27, 2005 9:23 am    Post subject: Reply with quote

Newbie

Joined: 11 Apr 2005
Posts: 8

Thanks for all the info
Back to top
View user's profile Send private message
GHTRIC
PostPosted: Wed May 04, 2005 2:09 pm    Post subject: Reply with quote

Newbie

Joined: 04 May 2005
Posts: 1
Location: FRANCE

Another case when you get an out of sequence error: one side of the channel is redefined not the other (should not occur in a "well controlled" production system).
Out of sequence is definitely not a usual error; though we managed high MQ messages rates on mission critical applications (mainly on Z-OS systems) we never developped anything to trap this condition.

Comment on sync/async applications: yes MQ is an async mechanism; however async. does not mean slow at all; MQ is quite compatible with real time applications ! we successfullly operated a subsecond response time application using millions messages a day (client/server application design).
What is impossible using async.: committing a DB update at both ends of the channel (example: confirm an order at one end and decrement stock level at other end really at the same time; both done or none).
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Heartbeat
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.