dbTalk Databases Forums  

Recovery: Why Redo Loser-Transactions after System-crash?

comp.databases comp.databases


Discuss Recovery: Why Redo Loser-Transactions after System-crash? in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stefan Oedenkoven
 
Posts: n/a

Default Recovery: Why Redo Loser-Transactions after System-crash? - 07-03-2004 , 07:47 AM






Hi ng,
i'm currently learning for a test and wondering why, in a case of a
systemcrash, I need to redo winner AND loser transactions.

scenario:
- using WAL Write Ahead log (write log before commit and before writing a
page to disc)
- TA A and TA B running
- TA A commited
- System crash

recovery:
- look at the log's and see TA A is winner and TA B is loser
- redo TA A and B (look if Log-sequence-number (LSN) is bigger than the
page-LSN of the table on disc; if yes => redo the saved operation)
- undo loser transaction (TA B)

could you give me an example where this is necessary?
The script say's its necessary to have idempotent log-files... so a 2nd
crash during recovery and 2nd recovery won't cause problems...

But if a 2nd crash occurs TA B will still be a loser!? Hmmm seems it don't
see the reason for this?!

thanks,
Stefan




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.