HBASE-17189 TestMasterObserver#wasModifyTableActionCalled uses wrong variables (Stephen Yuan Jiang)
This commit is contained in:
parent
987205caf9
commit
cdf539a8e0
|
@ -793,12 +793,20 @@ public class TestMasterObserver {
|
|||
preShutdownCalled = true;
|
||||
}
|
||||
|
||||
public boolean wasShutdownCalled() {
|
||||
return preShutdownCalled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void preStopMaster(ObserverContext<MasterCoprocessorEnvironment> env)
|
||||
throws IOException {
|
||||
preStopMasterCalled = true;
|
||||
}
|
||||
|
||||
public boolean wasStopMasterCalled() {
|
||||
return preStopMasterCalled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void preMasterInitialization(
|
||||
ObserverContext<MasterCoprocessorEnvironment> ctx) throws IOException {
|
||||
|
@ -1017,11 +1025,11 @@ public class TestMasterObserver {
|
|||
}
|
||||
|
||||
public boolean wasModifyTableHandlerCalled() {
|
||||
return preModifyColumnHandlerCalled && postModifyColumnHandlerCalled;
|
||||
return preModifyTableHandlerCalled && postModifyTableHandlerCalled;
|
||||
}
|
||||
|
||||
public boolean wasModifyTableHandlerCalledOnly() {
|
||||
return preModifyColumnHandlerCalled && !postModifyColumnHandlerCalled;
|
||||
return preModifyTableHandlerCalled && !postModifyTableHandlerCalled;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue