[
https://issues.apache.org/jira/browse/ZOOKEEPER-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14605100#comment-14605100
]
Raul Gutierrez Segales commented on ZOOKEEPER-1792:
---------------------------------------------------
[~shralex]: given that an observer can be promoted to be a participant (and
subsequently become a leader), does it need to maintain an in-memory copy of
committed proposals as pointed above? I'd think not, not sure.
> Observers don't need to keep 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.3.4#6332)