[
https://issues.apache.org/jira/browse/ZOOKEEPER-1520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13430693#comment-13430693
]
Bill Bridge commented on ZOOKEEPER-1520:
----------------------------------------
I have been unable to checkout the trunk and successfully run the tests. I am
using a Solaris 10 SPARC machine, and I expect that is part of my problem.
I eventually get the following error after "ant test" runs for 35 minutes:
{quote}
/zookeeper/zookeeper-trunk/build.xml:1240: Execute failed: java.io.IOException:
Cannot run program "autoreconf" (in directory
"/zookeeper/zookeeper-trunk/src/c"): error=2, No such file or directory
{quote}
Here are the commands I enter:
{quote}
bash-3.00$ rm -rf zookeeper-trunk/bash-3.00$ svn checkout
http://svn.apache.org/repos/asf/zookeeper/trunk/ zookeeper-trunk &>checkout.out
bash-3.00$ cd zookeeper-trunk/
bash-3.00$ ant init &>../init.out
bash-3.00$ ant test &>../ant.out
{quote}
I will attach the output files.
The autoreconf file is really missing. It seems to be related to compiling C
code to run natively, which is why I expect it is a SPARC problem.
Am I doing something wrong or is development on SPARC Solaris really broken?
I am very much a newbie to large scale Java development such as ZooKeeper. The
instructions on the how to contribute page were not sufficient for me. I had
previously downloaded zookeeper-3.3.5 and got it running under eclipse on
windows. I found out the hard way that the procedure for a checked out version
is quite different.
It would be nice to list the tools that should be installed such as ivy,
eclipse, ant, ... and where they can be found for download. It is particularly
important to specify which version of the JDK should be used since using a 1.7
feature in ZooKeeper would be bad if users are running a 1.6 JRE. I still do
not know which JDK is appropriate.
A bit more explaination about how the build file works, and what it is capable
of would be helpful. I have never used ant before so it took awhile to
understand build.xml. A list of the high level targets, their intended use, and
what they do would have told me that I did not need to find libraries like
log4j online. I had never heard of ivy. Understanding why I should do something
is better than just being told what to type.
> 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
> Attachments: init.out
>
> 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