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