bharathv commented on a change in pull request #1047: HBASE-23683 Make
HBaseInterClusterReplicationEndpoint more extensible…
URL: https://github.com/apache/hbase/pull/1047#discussion_r367081153
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/HBaseInterClusterReplicationEndpoint.java
##########
@@ -133,12 +152,12 @@ public void init(Context context) throws IOException {
// TODO: This connection is replication specific or we should make it
particular to
// replication and make replication specific settings such as compression
or codec to use
// passing Cells.
- this.conn = (ClusterConnection)
ConnectionFactory.createConnection(this.conf);
+ this.conn = (ClusterConnection) createConnection(this.conf);
Review comment:
> that kind of restrict the extensibility, which is what we are trying to
improve here,
Hmm.. May be I'm missing something, what does your use case look like here
where you have an override that does a generic Connection rather than (some
type of) ClusterConnection? I'm curious how it restricts extensibility because
to use this, it has to be a ClusterConnection, otherwise it fails at runtime,
no?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services