You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Benjamin Reed (Commented) (JIRA)" <ji...@apache.org> on 2012/02/07 23:34:59 UTC

[jira] [Commented] (ZOOKEEPER-1387) Wrong epoch file created

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202880#comment-13202880 ] 

Benjamin Reed commented on ZOOKEEPER-1387:
------------------------------------------

yes you are correct. i don't think it really affects the runtime since we are really just setting it to something reasonably arbitrary anyway, when the leadership/follower logic runs, it will be written correctly. let me see if i can make a testcase for it.
                
> Wrong epoch file created
> ------------------------
>
>                 Key: ZOOKEEPER-1387
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1387
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: quorum
>    Affects Versions: 3.4.2
>            Reporter: Benjamin Busjaeger
>            Priority: Minor
>
> It looks like line 443 in QuorumPeer [1] may need to change from:
> writeLongToFile(CURRENT_EPOCH_FILENAME, acceptedEpoch);
> to
> writeLongToFile(ACCEPTED_EPOCH_FILENAME, acceptedEpoch);
> I only noticed this reading the code, so I may be wrong and I don't know yet if/how this affects the runtime.
> [1] https://github.com/apache/zookeeper/blob/trunk/src/java/main/org/apache/zookeeper/server/quorum/QuorumPeer.java#L443

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira