HBASE-9975 Not starting ReplicationSink when using custom implementation for the ReplicationSink
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1542472 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c2c6db5f00
commit
b33e4daa2f
|
@ -1612,10 +1612,13 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa
|
||||||
if (this.replicationSourceHandler == this.replicationSinkHandler &&
|
if (this.replicationSourceHandler == this.replicationSinkHandler &&
|
||||||
this.replicationSourceHandler != null) {
|
this.replicationSourceHandler != null) {
|
||||||
this.replicationSourceHandler.startReplicationService();
|
this.replicationSourceHandler.startReplicationService();
|
||||||
} else if (this.replicationSourceHandler != null) {
|
} else {
|
||||||
this.replicationSourceHandler.startReplicationService();
|
if (this.replicationSourceHandler != null) {
|
||||||
} else if (this.replicationSinkHandler != null) {
|
this.replicationSourceHandler.startReplicationService();
|
||||||
this.replicationSinkHandler.startReplicationService();
|
}
|
||||||
|
if (this.replicationSinkHandler != null) {
|
||||||
|
this.replicationSinkHandler.startReplicationService();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start Server. This service is like leases in that it internally runs
|
// Start Server. This service is like leases in that it internally runs
|
||||||
|
|
|
@ -220,7 +220,7 @@ public class ReplicationSink {
|
||||||
* @param rows list of actions
|
* @param rows list of actions
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
private void batch(TableName tableName, Collection<List<Row>> allRows) throws IOException {
|
protected void batch(TableName tableName, Collection<List<Row>> allRows) throws IOException {
|
||||||
if (allRows.isEmpty()) {
|
if (allRows.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue