Rollback in long-running transactions
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Rollback in long-running transactions




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Rollback in long-running transactions  
Theo


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-30-05 10:53 PM

Hi!

I have a general question about long-running transactions. In case something
goes wrong and there is no exception handler or compensation block, what
happens with the committed operations? Are they rolled back? What happens
with the operations not yet committed? If there is an exception handler but
no compensation block, how does it change the situation?

I tried to find an article about these issues but found no satisfactory one.
There is a lot about atomic transactions but not much about long-running. Or
maybe you know a good site or a good article about this?

Thanx!

//theo





[ Post a follow-up to this message ]



    Re: Rollback in long-running transactions  
Tomas Restrepo \(MVP\)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-30-05 10:53 PM

Theo,

> I have a general question about long-running transactions. In case
> something
> goes wrong and there is no exception handler or compensation block, what
> happens with the committed operations? Are they rolled back? What happens
> with the operations not yet committed? If there is an exception handler
> but
> no compensation block, how does it change the situation?

No, they are not rolled back (there is no transaction coordinator behind
that works as DTC transaction does. If you are using long running
transactions, you *need* to write compensating actions to undo them in case
of failure. That's the whole poing.

The exception handler itself might let the process keep running, but usually
what you want to do is from the exception handler use the Compensate shape
to trigger compensation blocks for specific scopes, thus undoing the
transaction.


--
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/







[ Post a follow-up to this message ]



    Re: Rollback in long-running transactions  
Theo


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-30-05 10:53 PM

Thanks, now it's clear!

"Tomas Restrepo (MVP)" wrote:

> Theo,
> 
>
> No, they are not rolled back (there is no transaction coordinator behind
> that works as DTC transaction does. If you are using long running
> transactions, you *need* to write compensating actions to undo them in cas
e
> of failure. That's the whole poing.
>
> The exception handler itself might let the process keep running, but usual
ly
> what you want to do is from the exception handler use the Compensate shape
> to trigger compensation blocks for specific scopes, thus undoing the
> transaction.
>
>
> --
> Tomas Restrepo
> tomasr@mvps.org
> http://www.winterdom.com/
>
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:35 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register