db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@debrunners.com>
Subject Re: [PATCH] for Derb-1 (unable to create database on MAC)
Date Thu, 14 Oct 2004 17:55:35 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Suresh Thalamati wrote:

>
> Problem :  unable to create db on MAC  because when log files are opened
> in write sync mode on MAC JVM 1.4.2 , FileNotFoundException occurs.
> Possible Fix : Catch the FileNotFoundException  then  set log write mode
> to file Sync  and open the log files in plain "rw" mode.
>

As an alternative, has any one tried modifying Suresh's simple test case

http://nagoya.apache.org/eyebrowse/ReadMsg?listName=derby-dev@db.apache.org&msgNo=232

on OS X, to add

raf.getFD().sync();

before the close on the first open of the file (the open in rw mode)?

If the test case then passes, is that a suitable fix for Derby?

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

iD8DBQFBbr2XIv0S4qsbfuQRAr2MAJ9j0sFZQJGbHJBMGWfzvHvuTOf0eACg35ls
3+jcxIgWPxmkEYhcQMLkQwE=
=W8kr
-----END PGP SIGNATURE-----


Mime
View raw message