HDFS-14137. TestMaintenanceState fails with ArrayIndexOutOfBound Exception. Contributed by Ayush Saxena.

This commit is contained in:
Giovanni Matteo Fumarola 2018-12-11 11:22:32 -08:00
parent 202926ac33
commit 60af851e59
1 changed files with 2 additions and 0 deletions

View File

@ -665,6 +665,8 @@ public class TestMaintenanceState extends AdminStatesBaseTest {
int repl = 3;
writeFile(fileSys, file, repl, 1);
DFSTestUtil.waitForReplication((DistributedFileSystem) fileSys, file,
(short) repl, 10000);
final DatanodeInfo[] nodes = getFirstBlockReplicasDatanodeInfos(fileSys,
file);