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;
|
preShutdownCalled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean wasShutdownCalled() {
|
||||||
|
return preShutdownCalled;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void preStopMaster(ObserverContext<MasterCoprocessorEnvironment> env)
|
public void preStopMaster(ObserverContext<MasterCoprocessorEnvironment> env)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
preStopMasterCalled = true;
|
preStopMasterCalled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean wasStopMasterCalled() {
|
||||||
|
return preStopMasterCalled;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void preMasterInitialization(
|
public void preMasterInitialization(
|
||||||
ObserverContext<MasterCoprocessorEnvironment> ctx) throws IOException {
|
ObserverContext<MasterCoprocessorEnvironment> ctx) throws IOException {
|
||||||
|
@ -1017,11 +1025,11 @@ public class TestMasterObserver {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean wasModifyTableHandlerCalled() {
|
public boolean wasModifyTableHandlerCalled() {
|
||||||
return preModifyColumnHandlerCalled && postModifyColumnHandlerCalled;
|
return preModifyTableHandlerCalled && postModifyTableHandlerCalled;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean wasModifyTableHandlerCalledOnly() {
|
public boolean wasModifyTableHandlerCalledOnly() {
|
||||||
return preModifyColumnHandlerCalled && !postModifyColumnHandlerCalled;
|
return preModifyTableHandlerCalled && !postModifyTableHandlerCalled;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue