Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Evie Boland committed Dec 17, 2024
1 parent 7b11a31 commit fd4d358
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import org.slf4j.LoggerFactory;

/**
* This provides an class for maintaining a set of peer clusters. These peers are remote slave
* This provides a class for maintaining a set of peer clusters. These peers are remote slave
* clusters that data is replicated to.
* <p>
* We implement {@link ConfigurationObserver} mainly for recreating the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@
import org.apache.yetus.audience.InterfaceAudience;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.apache.hbase.thirdparty.com.google.common.collect.Sets;
import org.apache.hbase.thirdparty.com.google.protobuf.ByteString;
import org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor;
Expand All @@ -135,7 +134,6 @@
import org.apache.hbase.thirdparty.com.google.protobuf.Service;
import org.apache.hbase.thirdparty.com.google.protobuf.ServiceException;
import org.apache.hbase.thirdparty.com.google.protobuf.UnsafeByteOperations;

import org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil;
import org.apache.hadoop.hbase.shaded.protobuf.ResponseConverter;
import org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos;
Expand Down Expand Up @@ -2108,7 +2106,7 @@ public AddReplicationPeerResponse addReplicationPeer(RpcController controller,
public RemoveReplicationPeerResponse removeReplicationPeer(RpcController controller,
RemoveReplicationPeerRequest request) throws ServiceException {
try {
long procId = server.removeReplicationPeer(request.getPeerId());
long procId = f.removeReplicationPeer(request.getPeerId());
return RemoveReplicationPeerResponse.newBuilder().setProcId(procId).build();
} catch (ReplicationException | IOException e) {
throw new ServiceException(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import org.apache.yetus.audience.InterfaceAudience;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.apache.hbase.thirdparty.com.google.common.collect.Maps;

/**
Expand Down Expand Up @@ -87,9 +86,9 @@ public abstract class HBaseReplicationEndpoint extends BaseReplicationEndpoint
private List<ServerName> sinkServers = new ArrayList<>(0);

/**
* Some implementations of HBaseInterClusterReplicationEndpoint may require instantiate different
* Some implementations of HBaseInterClusterReplicationEndpoint may require us to instantiate different
* Connection implementations, or initialize it in a different way, so defining createConnection
* as protected for possible overridings.
* as protected for possible overrides.
*/
protected AsyncClusterConnection createConnection(URI clusterURI, Configuration conf)
throws IOException {
Expand Down Expand Up @@ -159,7 +158,7 @@ public UUID getPeerUUID() {
}

// do not call this method in doStart method, only initialize the connection to remote cluster
// when you actually wants to make use of it. The problem here is that, starting the replication
// when you actually want to make use of it. The problem here is that, starting the replication
// endpoint is part of the region server initialization work, so if the peer cluster is fully
// down and we can not connect to it, we will cause the initialization to fail and crash the
// region server, as we need the cluster id while setting up the AsyncClusterConnection, which
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
* Gateway to Replication. Used by {@link org.apache.hadoop.hbase.regionserver.HRegionServer}.
* <p>
* Implement {@link PropagatingConfigurationObserver} mainly for registering
* {@link ReplicationPeers}, so we can recreating the replication peer storage.
* {@link ReplicationPeers}, so we can recreate the replication peer storage.
*/
@InterfaceAudience.Private
public class Replication implements ReplicationSourceService, PropagatingConfigurationObserver {
Expand Down

0 comments on commit fd4d358

Please sign in to comment.