You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Hitoshi Mitake (JIRA)" <ji...@apache.org> on 2015/07/14 08:53:04 UTC
[jira] [Updated] (ZOOKEEPER-2233) Invalid description in the
comment of LearnerHandler.syncFollower()
[ https://issues.apache.org/jira/browse/ZOOKEEPER-2233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hitoshi Mitake updated ZOOKEEPER-2233:
--------------------------------------
Attachment: ZOOKEEPER-2233.patch
> Invalid description in the comment of LearnerHandler.syncFollower()
> -------------------------------------------------------------------
>
> Key: ZOOKEEPER-2233
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2233
> Project: ZooKeeper
> Issue Type: Improvement
> Reporter: Hitoshi Mitake
> Assignee: Hitoshi Mitake
> Priority: Trivial
> Attachments: ZOOKEEPER-2233.patch
>
>
> LearnerHandler.syncFollower() has a comment like below:
> When leader election is completed, the leader will set its
> lastProcessedZxid to be (epoch < 32). There will be no txn associated
> with this zxid.
> However, IIUC, the expression "epoch < 32" (comparison) should be "epoch << 32" (bitshift).
> Of course the error is very trivial but it was a little bit confusing for me, so I'd like to fix it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)