viliam-durina commented on issue #14334:
URL: https://github.com/apache/lucene/issues/14334#issuecomment-3492893313

   One more datapoint to support my claim that Lucene is using `fsync` 
incorrectly. `FileChannel.force()` javadoc, which we're using, says:
   
   >when this method returns it is guaranteed that all changes made to the file 
since this channel was created, or since this method was last invoked, will 
have been written to that device.
   
   So if you write a file, close it, then open it again and call `force`, it 
guarantees changes since the second opening of the file were persisted; in 
other words, it _guarantees nothing_ ¯\_(ツ)_/¯


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to