Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
New
Description
Since we are on Java 7 now and we already fixed FSDir.sync to use FileChannel (LUCENE-5570), we can also fsync the directory (at least try to do it). Unlike RandomAccessFile, which must be a regular file, FileChannel.open() can also open a directory: http://stackoverflow.com/questions/7694307/using-filechannel-to-fsync-a-directory-with-nio-2
Attachments
Attachments
Issue Links
- is related to
-
LUCENE-6169 Recent Java 9 commit breaks fsync on directory
- Open
- requires
-
LUCENE-5570 FSDirectory's fsync() is lenient
- Closed