HBASE-19580 Use slf4j instead of commons-logging in new, just-added Peer Procedure classes
This commit is contained in:
parent
17762c60cc
commit
7afae59323
|
@ -19,8 +19,6 @@ package org.apache.hadoop.hbase.master.replication;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.hadoop.hbase.client.replication.ReplicationPeerConfigUtil;
|
||||
import org.apache.hadoop.hbase.master.MasterCoprocessorHost;
|
||||
import org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv;
|
||||
|
@ -28,6 +26,8 @@ import org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer;
|
|||
import org.apache.hadoop.hbase.replication.ReplicationException;
|
||||
import org.apache.hadoop.hbase.replication.ReplicationPeerConfig;
|
||||
import org.apache.yetus.audience.InterfaceAudience;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.AddPeerStateData;
|
||||
|
||||
|
@ -37,7 +37,7 @@ import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.A
|
|||
@InterfaceAudience.Private
|
||||
public class AddPeerProcedure extends ModifyPeerProcedure {
|
||||
|
||||
private static final Log LOG = LogFactory.getLog(AddPeerProcedure.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(AddPeerProcedure.class);
|
||||
|
||||
private ReplicationPeerConfig peerConfig;
|
||||
|
||||
|
|
|
@ -19,11 +19,11 @@ package org.apache.hadoop.hbase.master.replication;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.hadoop.hbase.master.MasterCoprocessorHost;
|
||||
import org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv;
|
||||
import org.apache.yetus.audience.InterfaceAudience;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* The procedure for disabling a replication peer.
|
||||
|
@ -31,7 +31,7 @@ import org.apache.yetus.audience.InterfaceAudience;
|
|||
@InterfaceAudience.Private
|
||||
public class DisablePeerProcedure extends ModifyPeerProcedure {
|
||||
|
||||
private static final Log LOG = LogFactory.getLog(DisablePeerProcedure.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(DisablePeerProcedure.class);
|
||||
|
||||
public DisablePeerProcedure() {
|
||||
}
|
||||
|
|
|
@ -19,11 +19,11 @@ package org.apache.hadoop.hbase.master.replication;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.hadoop.hbase.master.MasterCoprocessorHost;
|
||||
import org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv;
|
||||
import org.apache.yetus.audience.InterfaceAudience;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* The procedure for enabling a replication peer.
|
||||
|
@ -31,7 +31,7 @@ import org.apache.yetus.audience.InterfaceAudience;
|
|||
@InterfaceAudience.Private
|
||||
public class EnablePeerProcedure extends ModifyPeerProcedure {
|
||||
|
||||
private static final Log LOG = LogFactory.getLog(EnablePeerProcedure.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(EnablePeerProcedure.class);
|
||||
|
||||
public EnablePeerProcedure() {
|
||||
}
|
||||
|
|
|
@ -19,8 +19,6 @@ package org.apache.hadoop.hbase.master.replication;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.hadoop.hbase.DoNotRetryIOException;
|
||||
import org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv;
|
||||
import org.apache.hadoop.hbase.master.procedure.PeerProcedureInterface;
|
||||
|
@ -30,6 +28,8 @@ import org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException;
|
|||
import org.apache.hadoop.hbase.procedure2.ProcedureYieldException;
|
||||
import org.apache.hadoop.hbase.procedure2.StateMachineProcedure;
|
||||
import org.apache.yetus.audience.InterfaceAudience;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.ModifyPeerStateData;
|
||||
import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.PeerModificationState;
|
||||
|
@ -42,7 +42,7 @@ public abstract class ModifyPeerProcedure
|
|||
extends StateMachineProcedure<MasterProcedureEnv, PeerModificationState>
|
||||
implements PeerProcedureInterface {
|
||||
|
||||
private static final Log LOG = LogFactory.getLog(ModifyPeerProcedure.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ModifyPeerProcedure.class);
|
||||
|
||||
protected String peerId;
|
||||
|
||||
|
|
|
@ -19,8 +19,6 @@ package org.apache.hadoop.hbase.master.replication;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.hadoop.hbase.ServerName;
|
||||
import org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv;
|
||||
import org.apache.hadoop.hbase.master.procedure.PeerProcedureInterface;
|
||||
|
@ -35,6 +33,8 @@ import org.apache.hadoop.hbase.procedure2.RemoteProcedureDispatcher.RemoteProced
|
|||
import org.apache.hadoop.hbase.procedure2.RemoteProcedureException;
|
||||
import org.apache.hadoop.hbase.replication.regionserver.RefreshPeerCallable;
|
||||
import org.apache.yetus.audience.InterfaceAudience;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil;
|
||||
import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.PeerModificationType;
|
||||
|
@ -45,7 +45,7 @@ import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.R
|
|||
public class RefreshPeerProcedure extends Procedure<MasterProcedureEnv>
|
||||
implements PeerProcedureInterface, RemoteProcedure<MasterProcedureEnv, ServerName> {
|
||||
|
||||
private static final Log LOG = LogFactory.getLog(RefreshPeerProcedure.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(RefreshPeerProcedure.class);
|
||||
|
||||
private String peerId;
|
||||
|
||||
|
|
|
@ -19,11 +19,11 @@ package org.apache.hadoop.hbase.master.replication;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.hadoop.hbase.master.MasterCoprocessorHost;
|
||||
import org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv;
|
||||
import org.apache.yetus.audience.InterfaceAudience;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* The procedure for removing a replication peer.
|
||||
|
@ -31,7 +31,7 @@ import org.apache.yetus.audience.InterfaceAudience;
|
|||
@InterfaceAudience.Private
|
||||
public class RemovePeerProcedure extends ModifyPeerProcedure {
|
||||
|
||||
private static final Log LOG = LogFactory.getLog(RemovePeerProcedure.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(RemovePeerProcedure.class);
|
||||
|
||||
public RemovePeerProcedure() {
|
||||
}
|
||||
|
|
|
@ -19,14 +19,14 @@ package org.apache.hadoop.hbase.master.replication;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.hadoop.hbase.client.replication.ReplicationPeerConfigUtil;
|
||||
import org.apache.hadoop.hbase.master.MasterCoprocessorHost;
|
||||
import org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv;
|
||||
import org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer;
|
||||
import org.apache.hadoop.hbase.replication.ReplicationPeerConfig;
|
||||
import org.apache.yetus.audience.InterfaceAudience;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.UpdatePeerConfigStateData;
|
||||
|
||||
|
@ -36,7 +36,7 @@ import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.U
|
|||
@InterfaceAudience.Private
|
||||
public class UpdatePeerConfigProcedure extends ModifyPeerProcedure {
|
||||
|
||||
private static final Log LOG = LogFactory.getLog(UpdatePeerConfigProcedure.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(UpdatePeerConfigProcedure.class);
|
||||
|
||||
private ReplicationPeerConfig peerConfig;
|
||||
|
||||
|
|
Loading…
Reference in New Issue