I uploaded initial patches based on Wei-Chiu Chuang's advice in
- make a common variable of MiniDFSCluster and use @After annotation to shutdown it.
- remove all FileSystem.close since MiniDFSCluster.shutdown closes FileSystem.
- remove unnecessary try statements.
- use LogFactory instead of using FSImage.LOG.
HDFS-10933.WIP.1.patch doesn't arrange indents so that it is easy to be reviewed. HDFS-10933.1.patch fixes them on top of the WIP patch.
Please review it when you are fee. Thanks!