You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Suresh Thalamati <ts...@Source-Zone.org> on 2004/10/14 11:55:02 UTC
[PATCH] for Derb-1 (unable to create database on MAC)
I believe Andrew is right , fixing this problem based on jvm vendor
names is likely to be error prone and endorsing particular jvm's is
not good.
After Looking at the code catching FileNotFoundException when log
file is opened "rws" mode does not seem to need major
changes in the code.
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.
Thanks
-suresh
Re: [PATCH] for Derb-1 (unable to create database on MAC)
Posted by Gus Mueller <gu...@gmail.com>.
On Thu, 14 Oct 2004 10:55:35 -0700, Daniel John Debrunner
<dj...@debrunners.com> wrote:
> 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?
I just tried this out on by box (10.3.5, jvm 1.4.2_05-141.3) and it
still threw and error.
-gus
Re: [PATCH] for Derb-1 (unable to create database on MAC)
Posted by Daniel John Debrunner <dj...@debrunners.com>.
-----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-----