HBASE-15559 Fix BaseMasterAndRegionObserver doesn't implement all the methods
This commit is contained in:
parent
31aee19f28
commit
b18de5ef45
|
@ -36,6 +36,7 @@ import org.apache.hadoop.hbase.ServerName;
|
||||||
import org.apache.hadoop.hbase.TableName;
|
import org.apache.hadoop.hbase.TableName;
|
||||||
import org.apache.hadoop.hbase.classification.InterfaceAudience;
|
import org.apache.hadoop.hbase.classification.InterfaceAudience;
|
||||||
import org.apache.hadoop.hbase.classification.InterfaceStability;
|
import org.apache.hadoop.hbase.classification.InterfaceStability;
|
||||||
|
import org.apache.hadoop.hbase.client.Admin;
|
||||||
import org.apache.hadoop.hbase.master.RegionPlan;
|
import org.apache.hadoop.hbase.master.RegionPlan;
|
||||||
import org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv;
|
import org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv;
|
||||||
import org.apache.hadoop.hbase.procedure2.ProcedureExecutor;
|
import org.apache.hadoop.hbase.procedure2.ProcedureExecutor;
|
||||||
|
@ -44,7 +45,7 @@ import org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Quotas;
|
||||||
|
|
||||||
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)
|
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)
|
||||||
@InterfaceStability.Evolving
|
@InterfaceStability.Evolving
|
||||||
public abstract class BaseMasterAndRegionObserver extends BaseRegionObserver
|
public class BaseMasterAndRegionObserver extends BaseRegionObserver
|
||||||
implements MasterObserver {
|
implements MasterObserver {
|
||||||
@Override
|
@Override
|
||||||
public void preCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
|
public void preCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
|
||||||
|
@ -446,6 +447,22 @@ public abstract class BaseMasterAndRegionObserver extends BaseRegionObserver
|
||||||
throws IOException {
|
throws IOException {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean preSetSplitOrMergeEnabled(ObserverContext<MasterCoprocessorEnvironment> ctx,
|
||||||
|
boolean newValue,
|
||||||
|
Admin.MasterSwitchType switchType)
|
||||||
|
throws IOException {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void postSetSplitOrMergeEnabled(ObserverContext<MasterCoprocessorEnvironment> ctx,
|
||||||
|
boolean newValue,
|
||||||
|
Admin.MasterSwitchType switchType)
|
||||||
|
throws IOException {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean preBalanceSwitch(ObserverContext<MasterCoprocessorEnvironment> ctx,
|
public boolean preBalanceSwitch(ObserverContext<MasterCoprocessorEnvironment> ctx,
|
||||||
boolean b) throws IOException {
|
boolean b) throws IOException {
|
||||||
|
|
|
@ -71,7 +71,7 @@ import com.google.common.collect.ImmutableList;
|
||||||
*/
|
*/
|
||||||
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)
|
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)
|
||||||
@InterfaceStability.Evolving
|
@InterfaceStability.Evolving
|
||||||
public abstract class BaseRegionObserver implements RegionObserver {
|
public class BaseRegionObserver implements RegionObserver {
|
||||||
@Override
|
@Override
|
||||||
public void start(CoprocessorEnvironment e) throws IOException { }
|
public void start(CoprocessorEnvironment e) throws IOException { }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue