HBASE-25560 Remove unused parameter named peerId in the constructor method of CatalogReplicationSourcePeer (#2939)
Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
471f52350a
commit
6fd23b2a11
|
@ -34,7 +34,7 @@ class CatalogReplicationSourcePeer extends ReplicationPeerImpl {
|
||||||
/**
|
/**
|
||||||
* @param clusterKey Usually the UUID from zk passed in by caller as a String.
|
* @param clusterKey Usually the UUID from zk passed in by caller as a String.
|
||||||
*/
|
*/
|
||||||
CatalogReplicationSourcePeer(Configuration configuration, String clusterKey, String peerId) {
|
CatalogReplicationSourcePeer(Configuration configuration, String clusterKey) {
|
||||||
super(configuration, ServerRegionReplicaUtil.REGION_REPLICA_REPLICATION_PEER + "_catalog",
|
super(configuration, ServerRegionReplicaUtil.REGION_REPLICA_REPLICATION_PEER + "_catalog",
|
||||||
true,
|
true,
|
||||||
ReplicationPeerConfig.newBuilder().
|
ReplicationPeerConfig.newBuilder().
|
||||||
|
|
|
@ -63,7 +63,6 @@ import org.apache.hadoop.hbase.replication.ReplicationQueueInfo;
|
||||||
import org.apache.hadoop.hbase.replication.ReplicationQueueStorage;
|
import org.apache.hadoop.hbase.replication.ReplicationQueueStorage;
|
||||||
import org.apache.hadoop.hbase.replication.ReplicationTracker;
|
import org.apache.hadoop.hbase.replication.ReplicationTracker;
|
||||||
import org.apache.hadoop.hbase.util.Pair;
|
import org.apache.hadoop.hbase.util.Pair;
|
||||||
import org.apache.hadoop.hbase.util.ServerRegionReplicaUtil;
|
|
||||||
import org.apache.hadoop.hbase.wal.AbstractFSWALProvider;
|
import org.apache.hadoop.hbase.wal.AbstractFSWALProvider;
|
||||||
import org.apache.hadoop.hbase.wal.WAL;
|
import org.apache.hadoop.hbase.wal.WAL;
|
||||||
import org.apache.hadoop.hbase.wal.WALFactory;
|
import org.apache.hadoop.hbase.wal.WALFactory;
|
||||||
|
@ -1023,7 +1022,7 @@ public class ReplicationSourceManager implements ReplicationListener {
|
||||||
// source process. See "4.1 Skip maintaining zookeeper replication queue (offsets/WALs)" in the
|
// source process. See "4.1 Skip maintaining zookeeper replication queue (offsets/WALs)" in the
|
||||||
// design doc attached to HBASE-18070 'Enable memstore replication for meta replica' for detail.
|
// design doc attached to HBASE-18070 'Enable memstore replication for meta replica' for detail.
|
||||||
CatalogReplicationSourcePeer peer = new CatalogReplicationSourcePeer(this.conf,
|
CatalogReplicationSourcePeer peer = new CatalogReplicationSourcePeer(this.conf,
|
||||||
this.clusterId.toString(), "meta_" + ServerRegionReplicaUtil.REGION_REPLICA_REPLICATION_PEER);
|
this.clusterId.toString());
|
||||||
final ReplicationSourceInterface crs = new CatalogReplicationSource();
|
final ReplicationSourceInterface crs = new CatalogReplicationSource();
|
||||||
crs.init(conf, fs, this, new NoopReplicationQueueStorage(), peer, server, peer.getId(),
|
crs.init(conf, fs, this, new NoopReplicationQueueStorage(), peer, server, peer.getId(),
|
||||||
clusterId, walProvider.getWALFileLengthProvider(), new MetricsSource(peer.getId()));
|
clusterId, walProvider.getWALFileLengthProvider(), new MetricsSource(peer.getId()));
|
||||||
|
|
Loading…
Reference in New Issue