HDFS-13964. RBF: TestRouterWebHDFSContractAppend fails with No Active Namenode under nameservice. Contributed by Ayush Saxena.
(cherry picked from commit 3bfff0f79e
)
This commit is contained in:
parent
843e7f81fe
commit
52f9759bf2
|
@ -82,6 +82,7 @@ public class RouterWebHDFSContract extends HDFSContract {
|
||||||
cluster.switchToStandby(ns, NAMENODES[1]);
|
cluster.switchToStandby(ns, NAMENODES[1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
cluster.waitActiveNamespaces();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
cluster = null;
|
cluster = null;
|
||||||
throw new IOException("Cannot start federated cluster", e);
|
throw new IOException("Cannot start federated cluster", e);
|
||||||
|
|
Loading…
Reference in New Issue