[
https://issues.apache.org/jira/browse/HBASE-20481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16462159#comment-16462159
]
Duo Zhang commented on HBASE-20481:
-----------------------------------
For the filterBatches method, if you want to use lambda then you can also
remove the for each loop.
{code}
oldEntryList
.stream().map(entries -> entries.stream()
.filter(e ->
!e.getKey().getTableName().equals(table)).collect(Collectors.toList()))
.collect(Collectors.toList());
{code}
> 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)