|
@@ -425,7 +425,7 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
|
|
|
|
|
/** The namespace tree. */
|
|
|
FSDirectory dir;
|
|
|
- private final BlockManager blockManager;
|
|
|
+ private BlockManager blockManager;
|
|
|
private final SnapshotManager snapshotManager;
|
|
|
private final CacheManager cacheManager;
|
|
|
private final DatanodeStatistics datanodeStatistics;
|
|
@@ -5808,6 +5808,11 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
|
|
return blockManager;
|
|
|
}
|
|
|
|
|
|
+ @VisibleForTesting
|
|
|
+ public void setBlockManagerForTesting(BlockManager bm) {
|
|
|
+ this.blockManager = bm;
|
|
|
+ }
|
|
|
+
|
|
|
/** @return the FSDirectory. */
|
|
|
@Override
|
|
|
public FSDirectory getFSDirectory() {
|