druid/core
Gian Merlino b7709e1245 FileUtils: Sync directory entry too on writeAtomically. (#6677)
* FileUtils: Sync directory entry too on writeAtomically.

See the fsync(2) man page for why this is important:
https://linux.die.net/man/2/fsync

This also plumbs CompressionUtils's "zip" function through
writeAtomically, so the code for handling atomic local filesystem
writes is all done in the same place.

* Remove unused import.

* Avoid FileOutputStream.

* Allow non-atomic writes to overwrite.

* Add some comments. And no need to flush an unbuffered stream.
2018-12-08 17:12:59 +01:00
..
src FileUtils: Sync directory entry too on writeAtomically. (#6677) 2018-12-08 17:12:59 +01:00
pom.xml combine druid-api, druid-common, java-util into druid-core (#6443) 2018-10-14 20:37:37 -07:00