Description
While investigating HDFS-6618, we have discovered that rename happening in the middle of getAdditionalBlock() can lead to logging of invalid edit entry.
In getAdditionalBlock() , the path is resolved once while holding the read lock and the same resolved path will be used in the edit log in the second half of the method holding the write lock. If a rename happens in between two locks, the path may no longer exist.
When replaying the AddBlockOp, it will fail with FileNotFound.