From 7e9b9e2a2ee8e6c583b6a591fb36687dacf6bb5a Mon Sep 17 00:00:00 2001 From: Wei-Chiu Chuang Date: Wed, 19 Jun 2019 06:55:08 -0700 Subject: [PATCH] Revert "HDFS-13287. TestINodeFile#testGetBlockType results in NPE when run alone. Contributed by Virajith Jalaparti." This reverts commit 36dc0810bf8032e4741e27a8f2b00e64dbdaef2a. --- .../org/apache/hadoop/hdfs/server/namenode/TestINodeFile.java | 1 - 1 file changed, 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestINodeFile.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestINodeFile.java index 4674bd73083..1392f9d9eb2 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestINodeFile.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestINodeFile.java @@ -296,7 +296,6 @@ 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); }