[
https://issues.apache.org/jira/browse/ZOOKEEPER-1520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423382#comment-13423382
]
Bill Bridge commented on ZOOKEEPER-1520:
----------------------------------------
I intend to upload a patch as soon as I can build from an svn checkout, edit in
eclipse, run the tests, and create a patch. This is an extremely complex
process, and is not documented anywhere that I can find. Fortunately I have a
friend that is an old hand at Java development. He is helping me find all the
parts that are not in the trunk (e.g. eclipse, svn, ant, ivy, slf4j, log4j,
???), configuring eclipse to successfully compile, and getting the tests to
run. At last report the tests were all failing due to some missing or misplaced
component or parameter. I suspect our wandering in the dark is going to produce
a different development environment than anyone else has. This will likely lead
to future problems.
Did I just not find the detailed description of how to take an empty machine
that boots some freshly installed OS and turn it into a ZooKeeper development
environment? It should start with which JDK to use (I chose jdk1.6.0), and
where to download it.
> 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