OCFL / ocfl-java

A Java OCFL implementation
MIT License
16 stars 12 forks source link

make all file operations synchronous #90

Closed pwinckles closed 1 year ago

pwinckles commented 1 year ago

In https://github.com/fcrepo/fcrepo/issues/2023 there were reported issues where there were empty files on the filesystem, but no application errors. The only reason that this could happen is if the filesystem had failed the writes asynchronously. So, I updated all of the usages of Java's NIO to use sync operations where applicable. If the errors are indeed happening asynchronously, this should force them to be captured in the application where they can be dealt with appropriately. Unfortunately, this will make these write operations slower.