[
https://issues.apache.org/jira/browse/HBASE-20167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16394780#comment-16394780
]
Guanghao Zhang commented on HBASE-20167:
----------------------------------------
bq. protected final ReplicationSource source;
bq. protected final long replicationBatchSizeCapacity;
Can be private?
{code:java}
while (entryReader == null) {
100 if (sleepForRetries("Replication WAL entry reader thread not
initialized",
101 sleepMultiplier)) {
102 sleepMultiplier++;
103 }
104 }
{code}
Why this block was removed?
> Optimize the implementation of ReplicationSourceWALReader
> ---------------------------------------------------------
>
> Key: HBASE-20167
> URL: https://issues.apache.org/jira/browse/HBASE-20167
> Project: HBase
> Issue Type: Sub-task
> Components: Replication
> Reporter: Duo Zhang
> Assignee: Duo Zhang
> Priority: Major
> Fix For: 3.0.0
>
> Attachments: HBASE-20167-v1.patch, HBASE-20167.patch
>
>
> After HBASE-20148, serial replication will be an option for peer. Since an
> instance of ReplicationSourceWALReader can only belongs to one peer, we do
> not need to add the so many 'if' in the implementation of readWALEntries to
> check whether we should consider serial replication. We can just make a sub
> class or something similiar for serial replication to make the code clean.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)