You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Jacky007 (JIRA)" <ji...@apache.org> on 2013/03/21 15:27:15 UTC
[jira] [Created] (ZOOKEEPER-1674) There is no need to reload
database cross leader election
Jacky007 created ZOOKEEPER-1674:
-----------------------------------
Summary: There is no need to reload database cross 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 code 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