HDFS-13964. RBF: TestRouterWebHDFSContractAppend fails with No Active Namenode under nameservice. Contributed by Ayush Saxena.

This commit is contained in:
Inigo Goiri 2018-10-06 10:40:49 -07:00
parent b85ee0d75d
commit 3bfff0f79e
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ public class RouterWebHDFSContract extends HDFSContract {
cluster.switchToStandby(ns, NAMENODES[1]);
}
}
cluster.waitActiveNamespaces();
} catch (Exception e) {
cluster = null;
throw new IOException("Cannot start federated cluster", e);