ddupg commented on a change in pull request #2579: URL: https://github.com/apache/hbase/pull/2579#discussion_r511707355
########## File path: hbase-server/src/main/java/org/apache/hadoop/hbase/replication/HBaseReplicationEndpoint.java ########## @@ -288,39 +258,26 @@ public boolean isAborted() { return false; } - /** - * Get the connection to peer cluster - * @return connection to peer cluster - * @throws IOException If anything goes wrong connecting - */ - private synchronized AsyncClusterConnection getPeerConnection() throws IOException { - if (peerConnection == null) { - Configuration conf = ctx.getConfiguration(); - peerConnection = ClusterConnectionFactory.createAsyncClusterConnection(conf, null, - UserProvider.instantiate(conf).getCurrent()); - } - return peerConnection; - } - /** * Get the list of all the servers that are responsible for replication sink * from the specified peer master * @return list of server addresses or an empty list if the slave is unavailable Review comment: Yes, I ignored changing the comment. Fixed it. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org