HBASE-17189 TestMasterObserver#wasModifyTableActionCalled uses wrong variables (Stephen Yuan Jiang)

This commit is contained in:
Stephen Yuan Jiang 2016-11-28 23:18:42 -08:00
parent 987205caf9
commit cdf539a8e0
1 changed files with 10 additions and 2 deletions

View File

@ -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