Affects Version/s: 2.2.0
Fix Version/s: None
After studying the steps HDFS name node takes to update the logs we found the following bug. The bug may not manifest in all current file system implementations, but it is possible in file systems that reorder metadata operations. e.g. btrfs
Looking at the strace of HDFS name node we see the following when updating the image:
If the file system reorders the last two rename operations and the system crashes before the second rename is persisted on disk, the system may end up with a fsimage that does not have a corresponding md5 file. In this case HDFS namenode does not boot.