You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by we...@apache.org on 2019/08/19 18:16:02 UTC

[hadoop] branch branch-3.2 updated: HDFS-14746. Trivial test code update after HDFS-14687. Contributed by kevin su.

This is an automated email from the ASF dual-hosted git repository.

weichiu pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new abda503  HDFS-14746. Trivial test code update after HDFS-14687. Contributed by kevin su.
abda503 is described below

commit abda5030408d12ba44c8b6df4137bdae6ee0690b
Author: HUAN-PING SU <pi...@gmail.com>
AuthorDate: Mon Aug 19 11:14:05 2019 -0700

    HDFS-14746. Trivial test code update after HDFS-14687. Contributed by kevin su.
    
    Reviewed-by: Surendra Singh Lilhore <su...@apache.org>
    Signed-off-by: Wei-Chiu Chuang <we...@apache.org>
    (cherry picked from commit abae6ff2a2760500b7e7d4414a43069ed4a45930)
---
 .../hdfs/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 f1ba802..22e9176 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 class TestPendingDataNodeMessages {
 
   @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);


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org