HBASE-20013 TestZKPermissionWatcher is flakey
This commit is contained in:
parent
969895105c
commit
68d509bc1f
|
@ -2718,11 +2718,21 @@ public class HMaster extends HRegionServer implements MasterServices {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void checkInitialized()
|
public static class MasterStoppedException extends DoNotRetryIOException {
|
||||||
throws PleaseHoldException, ServerNotRunningYetException, MasterNotRunningException {
|
MasterStoppedException() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void checkInitialized() throws PleaseHoldException, ServerNotRunningYetException,
|
||||||
|
MasterNotRunningException, MasterStoppedException {
|
||||||
checkServiceStarted();
|
checkServiceStarted();
|
||||||
if (!isInitialized()) throw new PleaseHoldException("Master is initializing");
|
if (!isInitialized()) {
|
||||||
if (isStopped()) throw new MasterNotRunningException();
|
throw new PleaseHoldException("Master is initializing");
|
||||||
|
}
|
||||||
|
if (isStopped()) {
|
||||||
|
throw new MasterStoppedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue