HDFS-13898 Addendum: add a missing test helper method
This commit is contained in:
parent
585b6de637
commit
0d153dcb8c
|
@ -428,7 +428,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;
|
||||
|
@ -5830,6 +5830,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() {
|
||||
|
|
Loading…
Reference in New Issue