From 60af851e59bf29efc5b2e132c8b9aaa11b29e672 Mon Sep 17 00:00:00 2001 From: Giovanni Matteo Fumarola Date: Tue, 11 Dec 2018 11:22:32 -0800 Subject: [PATCH] HDFS-14137. TestMaintenanceState fails with ArrayIndexOutOfBound Exception. Contributed by Ayush Saxena. --- .../test/java/org/apache/hadoop/hdfs/TestMaintenanceState.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestMaintenanceState.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestMaintenanceState.java index 7c536e913b..092b5af2dd 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestMaintenanceState.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestMaintenanceState.java @@ -665,6 +665,8 @@ public void testMultipleNodesMaintenance() throws Exception { int repl = 3; writeFile(fileSys, file, repl, 1); + DFSTestUtil.waitForReplication((DistributedFileSystem) fileSys, file, + (short) repl, 10000); final DatanodeInfo[] nodes = getFirstBlockReplicasDatanodeInfos(fileSys, file);