Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
When FSNamesystem#getBlockLocations updates the access time of the INode, it uses the path passed from the client, which generates incorrect edit logs entries:
<RECORD> <OPCODE>OP_TIMES</OPCODE> <DATA> <TXID>5085</TXID> <LENGTH>0</LENGTH> <PATH>/.reserved/.inodes/18230</PATH> <MTIME>-1</MTIME> <ATIME>1429908236392</ATIME> </DATA> </RECORD>
Note that the NN does not resolve the /.reserved path when processing the edit log, therefore it eventually leads to a NPE when loading the edit logs.
Attachments
Attachments
Issue Links
- Blocked
-
HDFS-13901 INode access time is ignored because of race between open and rename
- Resolved
- duplicates
-
HDFS-9477 namenode starts failed:FSEditLogLoader: Encountered exception on operation TimesOp
- Resolved
- is broken by
-
HDFS-7463 Simplify FSNamesystem#getBlockLocationsUpdateTimes
- Closed