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 » MQ Error 2003 then duplicated messages

Post new topic  Reply to topic
 MQ Error 2003 then duplicated messages « View previous topic :: View next topic » 
Author Message
tisged
PostPosted: Fri Oct 22, 2010 12:13 am    Post subject: MQ Error 2003 then duplicated messages Reply with quote

Newbie

Joined: 22 Oct 2010
Posts: 6

Can anyone help please? Recently upgraded from MQ5 to MQ7 on AIX. After 5 days we got an error 2003 'MQRC backed out', which is usually due to being unable to save a message in the log files. After recovering from this, we experienced lots of previously processed messages coming through again. Can anyone explain this and tell me how we prevent this happening?
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Fri Oct 22, 2010 1:16 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

Quote:
which is usually due to being unable to save a message in the log files


this is just a guess. investigate for the real reason. if Mq was short on log space there should be an entry in the log files about that,.


Quote:
After recovering from this


exactly - what actions have been performed for recovery?

IMHO, if a message was backed out, there is no need for a further recovery. what has to be done is to find the problem and fix it. then retry.
maybe the application is not working properly and is retrying too much.
_________________
Regards, Butcher
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Oct 22, 2010 6:56 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9472
Location: US: west coast, almost. Otherwise, enroute.

Quote:
After recovering from this, we experienced lots of previously processed messages coming through again.

On an MQCMIT or MQDISC call, when the commit operation has failed and the unit of work has been backed out. All resources that participated in the unit of work have been returned to their state at the start of the unit of work. The MQCMIT or MQDISC call completes with MQCC_WARNING in this case.

So, when a message is backed out, it is restored to the queue from where it was consumed.

If the consuming application is triggered again, it will mqget the same message that was most recently backed out. The message is not duplicated.

If the back-end work (like a DB update) is NOT included in the unit of work, then you would likely see the symptom of "multiple occurrences" of the same message that has already been processed.

[edit]
This is an application coding error.

Quote:
which is usually due to being unable to save a message in the log files


If there was insufficient log space, the application would have received a ReasonCode to that effect.
_________________
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
View user's profile Send private message
PeterPotkay
PostPosted: Fri Oct 22, 2010 8:58 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

And it could be a non triggered app to.

The app waits on the queue, getting messages as they arrive. It uses syncpoint for all the gets, but never commits. But it processes the data in the messages as it gets them. Eventually the logs fill, everything rolls back, and the app starts getting the same messages again.

Like Johnnie would have said if this app was on trial - "If the syncpoint fits, you must commit!" (or backout if appropriate).
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
tisged
PostPosted: Mon Oct 25, 2010 9:37 am    Post subject: Reply with quote

Newbie

Joined: 22 Oct 2010
Posts: 6

Thanks very helpfull

answers:

q: was it short on space?
a: Yep, same size as pre upgrade but log files filled in 4 days

q: what action taken?
a: stpped/restarted cobol 'readers'
Back to top
View user's profile Send private message
tisged
PostPosted: Mon Oct 25, 2010 9:39 am    Post subject: Reply with quote

Newbie

Joined: 22 Oct 2010
Posts: 6

can you tell me then if anything need to consder re comit/rollback when upgrading from 5.3 to 7.1?

we just recompiled, minor changes, retested links. We did not change any procedures or commands but suspect our syncpoints are now not where we expect them, or are there any configuration settings which may impact syncpoints?
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Oct 25, 2010 9:42 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

tisged wrote:
a: Yep, same size as pre upgrade but log files filled in 4 days


To repeat a question asked above: how do you know the log was full? I accept that's the example given in the InfoCenter for a 2003 but how do you know that's the situation here? In common with previous posters I'd have expected other messages & reason codes if the logs were full & indeed as they came close to capacity.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
tisged
PostPosted: Tue Nov 02, 2010 12:56 am    Post subject: Reply with quote

Newbie

Joined: 22 Oct 2010
Posts: 6

issue resolved, application error found whereby the mqcmit was not being executed, many thanks for the pointers above which helped us find this. Code amended, retested, cause proven in the bad version and fixed in the new, job done.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Nov 02, 2010 1:09 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

tisged wrote:
issue resolved, application error found whereby the mqcmit was not being executed, many thanks for the pointers above which helped us find this. Code amended, retested, cause proven in the bad version and fixed in the new, job done.

Also use best practice. Never rely on a default behavior for commit/rollback. Allways ask for an explicit commit/rollback in the code. Remember that the default behavior is not the same on all platforms.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Tue Nov 02, 2010 5:21 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9472
Location: US: west coast, almost. Otherwise, enroute.

Programmer deserves a swift smack with a trout.
_________________
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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQ Error 2003 then duplicated messages
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.