We are upgrading our application from RHEL6.5 ext4 to RHEL7.3 XFS. We have observed that with XFS file system doing a cold reboot (from system console - iLO) truncates some of our files (that are being written to disks every few seconds) to zero bytes. Not only our application, but let us say we redirect output from one command to a file using ">" those file disappear after the cold reboot. We are aware of the recommendation about explicity doing a fysnc. But what our code that is in Java? What about the cases from our python scripts?
Now we are in dilemma whether to stick with ext4 or XFS. XFS has advantages and would be our first preference. And we cannot believe that the rest of the world is not aware of this. Either this is something specific with RHEL (we see one similar issue fixed in RHLE6.5 https://bugzilla.redhat.com/show_bug.cgi?id=845233) or this is expected behavior from modern FileSystems?