Details
Description
That's because in getBlockLocations there is a gap between readUnlock and re-fetch write lock (to update access time). If a rename operation occurs in the gap, the update of access time will be ignored. We can calculate new path from the inode and use the new path to update access time.
Attachments
Attachments
Issue Links
- Blocked
-
HDFS-9477 namenode starts failed:FSEditLogLoader: Encountered exception on operation TimesOp
- Resolved
-
HDFS-8269 getBlockLocations() does not resolve the .reserved path and generates incorrect edit logs when updating the atime
- Closed
- relates to
-
HDFS-14529 SetTimes to throw FileNotFoundException if inode is not found
- Resolved
-
HDFS-7463 Simplify FSNamesystem#getBlockLocationsUpdateTimes
- Closed