You should be good then. FileDescriptor.sync() maps to
FlushFileBuffers in the Windows implementation.
RandomAccessFile.getChannel().force() does the same.
In light of this, I recommend re-running |org.h2.test.poweroff.Test
under Java7. It should work fine now.|
Gili
On 22/12/2011 2:47 AM, Thomas Mueller wrote:
Hi,
> 2. Java exposes this functionality through publicly accessible APIs.
H2 uses FileDescriptor.sync() (RandomAccessFile.getFD().sync()) by
default, but can also use
RandomAccessFile.getChannel().force(true/false) if configured (System
property h2.syncMethod, see the docs).
Regards,
Thomas
On Saturday, December 17, 2011, Gili Tzabari wrote:
Hi Thomas,
As mentioned in my original post, Java7 already implements
FlushFileBuffers() in the Windows implementation. The first release of
OpenJDK for MacOS will be Java8 so we'll have to check for F_FULLFSYNC
when it comes out.
The real question is when do you plan on making use of these APIs
in H2?
Thanks,
Gili
On Dec 15, 5:34 am, Thomas Mueller <[email protected]
<javascript:;>>
wrote:
> Hi,
>
> If there is a way to callFlushFileBuffers() / F_FULLFSYNC then it
> would be great (too bad no option for Linux), but I'm afraid if it's
> not already supported then filing an RFE at Oracle will not help
much.
> The chance that they actually implement it is *very* low. I
guess they
> will say that fsync() should simply work.
>
> I didn't run my 'christmas light timer' tests recently. If you
want to
> do that please go ahead.
>
> Regards,
> Thomas
--
You received this message because you are subscribed to the Google
Groups "H2 Database" group.
To post to this group, send email to [email protected]
<javascript:;>.
To unsubscribe from this group, send email to
[email protected] <javascript:;>.
For more options, visit this group at
http://groups.google.com/group/h2-database?hl=en.
--
You received this message because you are subscribed to the Google
Groups "H2 Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/h2-database?hl=en.
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/h2-database?hl=en.