Skip to content

Commit abae6ff

Browse files
pingsutwjojochuang
authored andcommitted
HDFS-14746. Trivial test code update after HDFS-14687. Contributed by kevin su.
Reviewed-by: Surendra Singh Lilhore <[email protected]> Signed-off-by: Wei-Chiu Chuang <[email protected]>
1 parent 51b6537 commit abae6ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestPendingDataNodeMessages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ public void testQueues() {
7979

8080
@Test
8181
public void testPendingDataNodeMessagesWithEC() throws Exception {
82-
ErasureCodingPolicy ecPolicy = SystemErasureCodingPolicies.getPolicies()
83-
.get(3);
82+
ErasureCodingPolicy ecPolicy = SystemErasureCodingPolicies
83+
.getByID(SystemErasureCodingPolicies.XOR_2_1_POLICY_ID);
8484
Path dirPath = new Path("/testPendingDataNodeMessagesWithEC");
8585
Configuration conf = new Configuration();
8686
conf.setInt(DFSConfigKeys.DFS_HA_TAILEDITS_PERIOD_KEY, 20 * 60000);

0 commit comments

Comments
 (0)