Description
While going through NameNodeFsck I found that following code creates the new instance of BlockPlacementPolicy for every block.
// verify block placement policy BlockPlacementStatus blockPlacementStatus = BlockPlacementPolicy.getInstance(conf, null, networktopology). verifyBlockPlacement(path, lBlk, targetFileReplication);
It would be better to use the namenode's BPP itself instead of creating a new one.