Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
1. Currently FSImageFormat#Loader#loadFilesUnderConstruction calls FSDirectory#unprotectedReplaceINodeFile without acquiring FSDirectory's lock. FSDirectory#replaceINodeFile should be called instead.
2. Currently FSImage#Loader#loadINode does not create block[] object (i.e., keep it as null) when the length of the block is 0. This will cause NPE when the loaded INodeFile is empty, and then an append operation on this inode is applied from edit log.