From abae6ff2a2760500b7e7d4414a43069ed4a45930 Mon Sep 17 00:00:00 2001 From: HUAN-PING SU Date: Mon, 19 Aug 2019 11:14:05 -0700 Subject: [PATCH] HDFS-14746. Trivial test code update after HDFS-14687. Contributed by kevin su. Reviewed-by: Surendra Singh Lilhore Signed-off-by: Wei-Chiu Chuang --- .../server/blockmanagement/TestPendingDataNodeMessages.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestPendingDataNodeMessages.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestPendingDataNodeMessages.java index f1ba802264..22e91765fc 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestPendingDataNodeMessages.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestPendingDataNodeMessages.java @@ -79,8 +79,8 @@ public void testQueues() { @Test public void testPendingDataNodeMessagesWithEC() throws Exception { - ErasureCodingPolicy ecPolicy = SystemErasureCodingPolicies.getPolicies() - .get(3); + ErasureCodingPolicy ecPolicy = SystemErasureCodingPolicies + .getByID(SystemErasureCodingPolicies.XOR_2_1_POLICY_ID); Path dirPath = new Path("/testPendingDataNodeMessagesWithEC"); Configuration conf = new Configuration(); conf.setInt(DFSConfigKeys.DFS_HA_TAILEDITS_PERIOD_KEY, 20 * 60000);