[
https://issues.apache.org/jira/browse/HBASE-20481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16462223#comment-16462223
]
Duo Zhang commented on HBASE-20481:
-----------------------------------
OK, see the code.
BTW, you can implement a method called replicate, and move the code in
Replicated to this method. You can use lambda to convert the method to a
Callable, and in this way, in RegionSerialReplicator, you do not need to create
a Replicator and call its call method which looks a bit strange...
> Add a setSerial method to ReplicationEndpoint
> ---------------------------------------------
>
> Key: HBASE-20481
> URL: https://issues.apache.org/jira/browse/HBASE-20481
> Project: HBase
> Issue Type: Sub-task
> Reporter: Duo Zhang
> Assignee: Zheng Hu
> Priority: Major
> Attachments: HBASE-20481.v1.patch, HBASE-20481.v2.patch
>
>
> When debugging HBASE-20475, [~openinx] found that the
> HBaseInterClusterReplicationEndpoint may send the entries for the same
> regions concurrently, which breaks the serial replication.
> As long as we can have multiple ReplicationEndpoint implementation, just fix
> HBaseInterClusterReplicationEndpoint is not enough, we need to add a
> setSerial method to ReplicationEndpoint, to tell the implementation that you
> should keep the order of the entries from the same region.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)