[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mahadev konar updated ZOOKEEPER-250:
------------------------------------

    Attachment: ZOOKEEPER-250.patch

this patch recreates the test case with corrupting the last snapshot adn then 
brings back the server and checks the validity of data. the test fails without 
the patch.

> isvalidsnapshot should handle the case of 0 snapshot files better.
> ------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-250
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-250
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.0.0, 3.0.1
>            Reporter: Mahadev konar
>            Assignee: Mahadev konar
>             Fix For: 3.1.0
>
>         Attachments: ZOOKEEPER-250.patch, ZOOKEEPER-250.patch
>
>
> the isvalidsnapshot will fail with negative seek if 0 snapshot files exist. 
> We should just return false in case the size of the snapshot is less than 5 
> bytes.

-- 
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