HADOOP-10668. TestZKFailoverControllerStress#testExpireBackAndForth occasionally fails. Contributed by Ming Ma.
This commit is contained in:
parent
e843a0a8ce
commit
7fc1f2f5cf
@ -722,6 +722,9 @@ Release 2.7.0 - UNRELEASED
|
|||||||
HADOOP-10542 Potential null pointer dereference in Jets3tFileSystemStore
|
HADOOP-10542 Potential null pointer dereference in Jets3tFileSystemStore
|
||||||
retrieveBlock(). (Ted Yu via stevel)
|
retrieveBlock(). (Ted Yu via stevel)
|
||||||
|
|
||||||
|
HADOOP-10668. TestZKFailoverControllerStress#testExpireBackAndForth
|
||||||
|
occasionally fails. (Ming Ma via cnauroth)
|
||||||
|
|
||||||
Release 2.6.0 - 2014-11-18
|
Release 2.6.0 - 2014-11-18
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -154,6 +154,8 @@ public HAServiceTarget getLocalTarget() {
|
|||||||
return localTarget;
|
return localTarget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HAServiceState getServiceState() { return serviceState; }
|
||||||
|
|
||||||
public int run(final String[] args) throws Exception {
|
public int run(final String[] args) throws Exception {
|
||||||
if (!localTarget.isAutoFailoverEnabled()) {
|
if (!localTarget.isAutoFailoverEnabled()) {
|
||||||
LOG.fatal("Automatic failover is not enabled for " + localTarget + "." +
|
LOG.fatal("Automatic failover is not enabled for " + localTarget + "." +
|
||||||
|
@ -158,8 +158,8 @@ public void setUnreachable(int idx, boolean unreachable) {
|
|||||||
*/
|
*/
|
||||||
public void waitForHAState(int idx, HAServiceState state)
|
public void waitForHAState(int idx, HAServiceState state)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
DummyHAService svc = getService(idx);
|
DummyZKFC svc = getZkfc(idx);
|
||||||
while (svc.state != state) {
|
while (svc.getServiceState() != state) {
|
||||||
ctx.checkException();
|
ctx.checkException();
|
||||||
Thread.sleep(50);
|
Thread.sleep(50);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user