Mahadev konar updated ZOOKEEPER-596:

    Attachment: ZOOKEEPER-596.patch

a preliminary patch. Does not include tests. Will still be adding tests and 
cleaning it up. 

this patch adds:

- a new class ZKDatabase that becomes a top level member of quorumpeer and 
passed around to all the zookeeper server's created for the life of a quorumPeer
- the zkdatabase includes all the api's needed to modify/use/load the zk 
making ZKDatabase as the top level member of quorumpeer allows it to be shared 
across different instances of zookeeper servers (leader/learner/observer) of an 
instance of quorumpeer.

I will be adding javadocs and cleaning up the patch shortly.

> The last logged zxid calculated by zookeeper servers could cause problems in 
> leader election if data gets corrupted.
> --------------------------------------------------------------------------------------------------------------------
>                 Key: ZOOKEEPER-596
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-596
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>            Reporter: Mahadev konar
>            Assignee: Mahadev konar
>             Fix For: 3.3.0
>         Attachments: ZOOKEEPER-596.patch
> It is possible that the last loggged zxid as reported by all the servers 
> during leader election is not the last zxid that the server can upload data 
> to. It is very much possible that some transaction or snapshot gets corrupted 
> and the servers actually do not have valid data till last logged zxid. We 
> need to make sure that what the servers report as there last logged zxid, 
> they are able to load data till that zxid.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

Reply via email to