[jira] [Resolved] (LUCENE-5588) We should also fsync the directory when committing

2014-04-10 Thread Uwe Schindler (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-5588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Uwe Schindler resolved LUCENE-5588.
---

Resolution: Fixed

 We should also fsync the directory when committing
 --

 Key: LUCENE-5588
 URL: https://issues.apache.org/jira/browse/LUCENE-5588
 Project: Lucene - Core
  Issue Type: Improvement
  Components: core/store
Reporter: Uwe Schindler
Assignee: Uwe Schindler
 Fix For: 4.8, 5.0

 Attachments: LUCENE-5588.patch, LUCENE-5588.patch, LUCENE-5588.patch


 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



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Resolved] (LUCENE-5588) We should also fsync the directory when committing

2014-04-10 Thread Uwe Schindler (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-5588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Uwe Schindler resolved LUCENE-5588.
---

Resolution: Fixed

 We should also fsync the directory when committing
 --

 Key: LUCENE-5588
 URL: https://issues.apache.org/jira/browse/LUCENE-5588
 Project: Lucene - Core
  Issue Type: Improvement
  Components: core/store
Reporter: Uwe Schindler
Assignee: Uwe Schindler
 Fix For: 4.8, 5.0

 Attachments: LUCENE-5588-nonexistfix.patch, LUCENE-5588.patch, 
 LUCENE-5588.patch, LUCENE-5588.patch


 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



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org