db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suresh Thalamati <tsur...@Source-Zone.org>
Subject [PATCH] Fix to prevent empty log file switches that could cause recovery failures
Date Wed, 01 Sep 2004 21:02:36 GMT
I would like to submit a fix for a bug in log file switching.

problem :  In multi-threaded application when lot of threads are 
executing commits in parallel,  
                  empty log files might be created. Recovery log scan  
does not expect  empty log files
                  while scanning log records   to undo  incomplete 
transactions..
 
Fix:
       a)  prevent empty log switches by  rechecking the conditions that 
triggers the log switches
            inside synchronized blocks.
        b)  Make backward scans skip the empty log files.

Please review  the changes in the attached diff file.

I'm employed by IBM and have been working on the Cloudscape  product for 
few years.  This is my first
submission to derby.

-suresh

Mime
View raw message