HDFS-13287. TestINodeFile#testGetBlockType results in NPE when run alone. Contributed by Virajith Jalaparti.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
This commit is contained in:
parent
f9ee97de98
commit
a1c3868c4f
|
@ -296,6 +296,7 @@ public class TestINodeFile {
|
|||
preferredBlockSize = 128*1024*1024;
|
||||
INodeFile inf = createINodeFile(replication, preferredBlockSize);
|
||||
assertEquals(inf.getBlockType(), CONTIGUOUS);
|
||||
ErasureCodingPolicyManager.getInstance().init(new Configuration());
|
||||
INodeFile striped = createStripedINodeFile(preferredBlockSize);
|
||||
assertEquals(striped.getBlockType(), STRIPED);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue