You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Patrick Hunt (JIRA)" <ji...@apache.org> on 2012/08/01 00:58:34 UTC

[jira] [Commented] (ZOOKEEPER-1520) A txn log record with a corrupt sentinel byte looks like EOF

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13426199#comment-13426199 ] 

Patrick Hunt commented on ZOOKEEPER-1520:
-----------------------------------------

"ant test" is usually how we do it.

Also "ant eclipse" and then open the project in eclipse itself.

No need to download jars and such (slf/log/etc..) those will be d/l automatically by ant.


If the "how to contribute" page is not sufficient please let us know: https://cwiki.apache.org/confluence/display/ZOOKEEPER/HowToContribute
                
> A txn log record with a corrupt sentinel byte looks like EOF
> ------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1520
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1520
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.3.5
>         Environment: all
>            Reporter: Bill Bridge
>            Priority: Minor
>              Labels: newbie
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> In Util.readTxnBytes() the sentinel is compared with 0x42 and if it does not match then the record is considered partially written and thus the EOF. However if it is a partial record the sentinel should be 0x00 since that is what the log is initialized with. Any other value would indicate corruption and should throw an IOException rather than indicate EOF. See [ZOOKEEPER-1453|https://issues.apache.org/jira/browse/ZOOKEEPER-1453] for a related issue. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira