db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Matrigali <mikem_...@sbcglobal.net>
Subject Re: [PATCH] Fix to prevent empty log file switches that could cause recovery failures
Date Tue, 05 Oct 2004 23:48:57 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have committed this patch as revision 53832.

Suresh Thalamati wrote:

| 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
|
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBYzLnEpeslyHqPs0RAlGzAKDsBmJ3XMPBMTztE640J3VRjHh2mACeMHQ3
2rKnhTWt/vqZDKr6V7x2oBI=
=Bshz
-----END PGP SIGNATURE-----

Mime
View raw message