Rollback when using multiple input links

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
stiantok
Participant
Posts: 8
Joined: Tue Sep 09, 2014 8:55 am

Rollback when using multiple input links

Post by stiantok »

If I have two or more links going into a DB2-connector, will whatever the first link does be rolled back if the second link fails? E.g. if I first do a delete operation, and then an insert, and the insert fails, will the delete be automatically rolled back?

If not, is there any quick way of fixing this, any settings or such that can be adjusted, or any other smart solutions?
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

You may want to look into the Distributed Transaction Stage to see if that will handle it as you described.
Choose a job you love, and you will never have to work a day in your life. - Confucius
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If you have multiple links into the same target stage, then yes an abort during any operation will rollback whatever hasn't been committed at that point in all of the links. At least that was my experience in the past in a pre-connector world, so assuming (for better or worse) that it still works that way since all the work is done via a single database connection.

Of course, running on multiple nodes will complicate things as it usually does. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply