I looked further at
HDFS-9231 change I reviewed earlier, and realize I missed one thing.
The patch changed
In old code, namenode.getRpcServer().getSnapshottableDirListing() calls checkNNStartup(), however, this is not done with the new code. This is a hole of the earlier
Create this jira to fix the hole. Suggest to revert this portion of the change, and add code to do what we need at NamenodeFsck.
Sorry for missing this in my earlier review of