|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Simulating XA failure |
« View previous topic :: View next topic » |
Author |
Message
|
yashgt |
Posted: Thu May 19, 2016 6:25 am Post subject: Simulating XA failure |
|
|
Apprentice
Joined: 11 Nov 2014 Posts: 38
|
MQ Manager when used as a Transaction Coordinator, uses Two-phase commit protocol. It first issues a Ready-to-commit query to the resource managers. If they all are ready, the Commit is issued. I want to simulate a failure where the Ready to Commit succeeded and the Commit for one of the resource managers failed, resulting in the transaction becoming in-doubt.
All operations happen so fast that I do not get a chance to artificially kill a process or cause a failure. Any ideas on how I can acheive this? Is there a hook I can use? The UOW_COMMIT hook in the API exit functions seems to be at the Commit statement level and not at the su-step such as Ready to Commit.
Thanks,
Yash |
|
Back to top |
|
 |
Andyh |
Posted: Thu May 19, 2016 9:17 am Post subject: |
|
|
Master
Joined: 29 Jul 2010 Posts: 239
|
Writing a 'dummy' resource manager would be one way of doing this,
another would be to trace the MQCMIT flow and inject a break under the debugger into some internal MQ function called after the RM's have been prepared.
More realistic might be to set up a workload and to kill various components of the workload (e.g the QMgr or the DB) while it's in full flow. |
|
Back to top |
|
 |
hughson |
Posted: Thu May 19, 2016 1:48 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
|
Back to top |
|
 |
yashgt |
Posted: Mon May 23, 2016 8:49 pm Post subject: |
|
|
Apprentice
Joined: 11 Nov 2014 Posts: 38
|
|
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
|
|
|
|