Description
The SecondaryNameNode clears and reloads its FSNamesystem when doing checkpointing. However, FSNamesystem#clear does not clear CacheManager state during this reload. This leads to an error like the following:
org.apache.hadoop.fs.InvalidRequestException: Cache pool pool1 already exists.