zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thawan Kooburat (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-1674) There is no need to clear & load the database across leader election
Date Thu, 26 Sep 2013 21:46:05 GMT

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

Thawan Kooburat commented on ZOOKEEPER-1674:

Internally, we are working on this one at the moment. We are trying to fix this issue without
relying on or fixing ZOOKEEPER-1549, so this patch won't be too large or complicate. 
> There is no need to clear & load the database across leader election
> --------------------------------------------------------------------
>                 Key: ZOOKEEPER-1674
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1674
>             Project: ZooKeeper
>          Issue Type: Improvement
>            Reporter: Jacky007
> It is interesting to notice the piece of codes in QuorumPeer.java
>  /* ZKDatabase is a top level member of quorumpeer 
>      * which will be used in all the zookeeperservers
>      * instantiated later. Also, it is created once on 
>      * bootup and only thrown away in case of a truncate
>      * message from the leader
>      */
>     private ZKDatabase zkDb;
> It is introduced by ZOOKEEPER-596. Now, we just drop the database every leader election.
> We can keep it safely with ZOOKEEPER-1549.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message