Github user Tagar commented on the issue:
https://github.com/apache/zeppelin/pull/2978
@sanjaydasgupta, `writeFile` in `FileSystemStorage` drops file first, and
then renames temp file.
It's not an atomic write, and also leaves a chance to loosing file that is
being written.
I'd say approach in this PR is more formalized and a better way to go.
https://github.com/apache/zeppelin/blob/master/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/FileSystemStorage.java#L155---
