You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Raul Gutierrez Segales (JIRA)" <ji...@apache.org> on 2013/10/11 03:18:41 UTC
[jira] [Created] (ZOOKEEPER-1792) Observers don't need to keep the
an in-memory copy of last commited proposals
Raul Gutierrez Segales created ZOOKEEPER-1792:
-------------------------------------------------
Summary: Observers don't need to keep the an in-memory copy of last commited proposals
Key: ZOOKEEPER-1792
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1792
Project: ZooKeeper
Issue Type: Improvement
Reporter: Raul Gutierrez Segales
Priority: Minor
In FinalRequestProcessor.java#processRequest we have:
{noformat}
if (request.isQuorum()) {
zks.getZKDatabase().addCommittedProposal(request);
}
{noformat}
but this is only useful to the leader since committed proposals are only used from LearnerHandler to sync up followers. I presume followers do need it as they might become a leader at any point. But observers have no need for them, so we could probably special case this for them and optimize the path for them.
--
This message was sent by Atlassian JIRA
(v6.1#6144)