Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
3.0.0-alpha1
-
None
-
None
Description
SNN will call FSNamesystem#clear while merging the fsimage to its local FSNamesystem, and the FSDirectory will be reset in this process. However, in FSDirectory#reset, a new inode id will be allocated and assigned to the new root.
To fix the problem, we can either pass in an inode id in FSDirectory#createRoot, or update the root id in FSImageFormat#updateRootAttr.