lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <>
Subject Re: [jira] Commented: (LUCENE-1044) Behavior on hard power shutdown
Date Fri, 30 Nov 2007 18:09:03 GMT
On Nov 30, 2007 12:42 PM, robert engels <> wrote:
> It is unclear if you need to open them for writing. The unix specs
> clearly allow you do call fsync on ANY file descriptor.
> The Linux docs seem to imply that a file descriptor opened for write
> is required.
> The Java specification allows it on ANY file descriptor as well -
> this should be the only one that matters.

AIX docs say that fd opened for write is required... one of the error codes is
 "EBADF 	 The FileDescriptor parameter is not a valid file descriptor
open for writing."

Java can't do much if the underlying OS doesn't support it, so it
looks like we need to open for writing to sync.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message