dbTalk Databases Forums  

emulation of DB corruption

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss emulation of DB corruption in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Konstantin Sorokin
 
Posts: n/a

Default emulation of DB corruption - 07-21-2006 , 03:09 AM






Hello !

If I want to test database recovery after power loss what is the best way
to emulate db corruption without actually switching off power ? Sending
SIGKILL signal to app. does not work with 100% guarantee of data
corruption.

--
Konstantin Sorokin

Reply With Quote
  #2  
Old   
Ryan
 
Posts: n/a

Default Re: emulation of DB corruption - 07-25-2006 , 11:36 AM






Konstantin Sorokin wrote:
Quote:
If I want to test database recovery after power loss what is the best way
to emulate db corruption without actually switching off power ? Sending
SIGKILL signal to app. does not work with 100% guarantee of data
corruption.
Switching off the power wouldn't work 100% of the time either. You need
to guarantee that a transaction is actually in progress when the system
goes down.

You might try writing a driver program that does something like this:
1. fire up the database
2. partially execute one or more transactions
3. assert(false)

Then see what happens the next time you start up BDB.

Ryan



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.