Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
Currently FSNamesystem#getBlockLocationsUpdateTimes holds the read lock to access the blocks. It releases the read lock and then acquires the write lock when it needs to update the access time of the INode.
This jira proposes to move the responsibility of the latter steps to the caller to simplify the code.
Attachments
Attachments
Issue Links
- breaks
-
HDFS-8269 getBlockLocations() does not resolve the .reserved path and generates incorrect edit logs when updating the atime
- Closed
- is related to
-
HDFS-13901 INode access time is ignored because of race between open and rename
- Resolved