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

View File

@ -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);