You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by ma...@apache.org on 2008/09/10 19:49:28 UTC

svn commit: r693912 - in /hadoop/zookeeper/trunk: ./ src/contrib/ src/contrib/zkfuse/ src/java/main/ src/java/main/org/apache/zookeeper/server/ src/java/main/org/apache/zookeeper/server/quorum/ src/java/test/org/apache/zookeeper/test/

Author: mahadev
Date: Wed Sep 10 10:49:26 2008
New Revision: 693912

URL: http://svn.apache.org/viewvc?rev=693912&view=rev
Log:
ZOOKEEPER-130. update build.xml to support apache release process.

Added:
    hadoop/zookeeper/trunk/src/contrib/build-contrib.xml
    hadoop/zookeeper/trunk/src/contrib/build.xml
    hadoop/zookeeper/trunk/src/contrib/zkfuse/build.xml
    hadoop/zookeeper/trunk/src/java/main/overview.html
Modified:
    hadoop/zookeeper/trunk/CHANGES.txt
    hadoop/zookeeper/trunk/build.xml
    hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/DataTree.java
    hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/quorum/FollowerZooKeeperServer.java
    hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/quorum/Leader.java
    hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/quorum/QuorumPeer.java
    hadoop/zookeeper/trunk/src/java/test/org/apache/zookeeper/test/OOMTest.java
    hadoop/zookeeper/trunk/src/java/test/org/apache/zookeeper/test/RecoveryTest.java

Modified: hadoop/zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/CHANGES.txt?rev=693912&r1=693911&r2=693912&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/CHANGES.txt (original)
+++ hadoop/zookeeper/trunk/CHANGES.txt Wed Sep 10 10:49:26 2008
@@ -58,3 +58,6 @@
  (Flavio Paiva Junqueira via mahadev)
 
  ZOOKEEPER-63. Race condition in client close() operation. (phunt via breed)
+
+ ZOOKEEPER-130. update build.xml to support apache release process. 
+ (phunt via mahadev)

Modified: hadoop/zookeeper/trunk/build.xml
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/build.xml?rev=693912&r1=693911&r2=693912&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/build.xml (original)
+++ hadoop/zookeeper/trunk/build.xml Wed Sep 10 10:49:26 2008
@@ -64,10 +64,15 @@
     <property name="conf.dir" value="${basedir}/conf"/>
     <property name="docs.dir" value="${basedir}/docs"/>
     <property name="docs.src" value="${basedir}/src/docs"/>
-    <property name="javadoc.link.java" value="http://java.sun.com/j2se/${target.jdk}/docs/api/" />
+    <property name="javadoc.link.java"
+              value="http://java.sun.com/j2se/1.5/docs/api/" />
     <property name="javadoc.packages" value="org.apache.*" />
+
     <property name="build.docs" value="${build.dir}/docs" />
     <property name="build.javadoc" value="${build.docs}/api" />
+    <property name="build.javadoc.dev" value="${build.docs}/dev-api"/>
+
+    <property name="dist.dir" value="${build.dir}/${final.name}"/>
 
     <property name="clover.home" location="${env.CLOVER_HOME}"/>
     <property name="clover.jar" location="${clover.home}/lib/clover.jar" />
@@ -75,10 +80,14 @@
     <property name="clover.report.dir"
               location="${test.build.dir}/clover/reports"/>
 
+    <property name="contrib.dir" value="${src.dir}/contrib"/>
+
     <available property="clover.present"
                classname="com.cenqua.clover.CloverInstr"
                classpath="${clover.home}/lib/clover.jar"/>
 
+    <available file="${c.src.dir}/Makefile" property="Makefile.present"/>
+
     <!-- check if clover reports should be generated -->
     <condition property="clover.enabled">
       <and>
@@ -92,6 +101,20 @@
     <property name="coveragereport.dir" value="${build.dir}/cobertura" />
 
     <!-- ====================================================== -->
+    <!-- Macro definitions                                      -->
+    <!-- ====================================================== -->
+    <macrodef name="macro_tar" description="Worker Macro for tar">
+      <attribute name="param.destfile"/>
+      <element name="param.listofitems"/>
+      <sequential>
+        <tar compression="gzip" longfile="gnu"
+             destfile="@{param.destfile}">
+          <param.listofitems/>
+        </tar>
+      </sequential>
+    </macrodef>
+
+    <!-- ====================================================== -->
     <!-- Generate and compile the Java files                    -->
     <!-- ====================================================== -->
     <target name="init">    
@@ -236,7 +259,10 @@
       <condition property="forrest.exec" value="forrest.bat" else="forrest">
       	<os family="windows"/>
       </condition>
-      <exec dir="${docs.src}" executable="${forrest.home}/bin/${forrest.exec}" failonerror="true" />
+      <exec dir="${docs.src}" executable="${forrest.home}/bin/forrest"
+            failonerror="true">
+        <env key="JAVA_HOME" value="${java5.home}"/>
+      </exec>
       <copy todir="${docs.dir}">
         <fileset dir="${docs.src}/build/site/" />
       </copy>
@@ -244,17 +270,22 @@
              includes="zookeeper-default.xml" style="conf/configuration.xsl"/>
     </target>
 
-    <target name="forrest.check" unless="forrest.home">
+    <target name="forrest.check" unless="forrest.home" depends="java5.check">
       <fail message="'forrest.home' is not defined. Please pass -Dforrest.home=&lt;base of Apache Forrest installation&gt; to Ant on the command-line." />
     </target>
 
+    <target name="java5.check" unless="java5.home">
+      <fail message="'java5.home' is not defined.  Forrest requires Java 5.  Please pass -Djava5.home=&lt;base of Java 5 distribution&gt; to Ant on the command-line." />
+    </target>
+	
     <!-- Javadoc -->
-    <target name="javadoc" description="Generate javadoc">
-      <mkdir dir="${build.javadoc}"/>
+    <target name="javadoc-dev" depends="compile"
+            description="Generate javadoc for zookeeper developers">
+      <mkdir dir="${build.javadoc.dev}"/>
       <javadoc
          overview="${java.src.dir}/overview.html"
          packagenames="org.apache.zookeeper.*"
-         destdir="${build.javadoc}"
+         destdir="${build.javadoc.dev}"
          author="true"
          version="true"
          use="true"
@@ -266,10 +297,44 @@
           <include name="org/apache/**"/>
           <exclude name="org/apache/jute/**"/>
     	</packageset>
+    	<packageset dir="${src_generated.dir}"/>
         <link href="${javadoc.link.java}"/>
-        <classpath >
-          <pathelement path="${java.class.path}"/>
-        </classpath>
+        <classpath refid="project.classpath"/>
+      </javadoc>
+    </target>	
+
+    <target name="javadoc" depends="compile" description="Generate javadoc">
+      <mkdir dir="${build.javadoc}"/>
+      <javadoc
+         overview="${java.src.dir}/overview.html"
+         packagenames="org.apache.zookeeper.*"
+         destdir="${build.javadoc}"
+         author="true"
+         version="true"
+         use="true"
+         Public="yes"
+         windowtitle="${Name} ${version} API"
+         doctitle="${Name} ${version} API"
+         bottom="Copyright &amp;copy; ${year} The Apache Software Foundation"
+         >
+    	<fileset dir="${java.src.dir}">
+          <include name="org/apache/**/*Main.java"/>
+          <include name="org/apache/zookeeper/AsyncCallback.java"/>
+          <include name="org/apache/zookeeper/KeeperException.java"/>
+          <include name="org/apache/zookeeper/ServerAdminClient.java"/>
+          <include name="org/apache/zookeeper/Watcher.java"/>
+          <include name="org/apache/zookeeper/ZooDefs.java"/>
+          <include name="org/apache/zookeeper/ZooKeeper.java"/>
+          <exclude name="org/apache/zookeeper/server/quorum/QuorumPacket"/>
+    	</fileset>
+    	<packageset dir="${src_generated.dir}">
+          <exclude name="org/apache/zookeeper/proto"/>
+          <exclude name="org/apache/zookeeper/txn"/>
+          <exclude name="org/apache/zookeeper/version"/>
+          <exclude name="org/apache/zookeeper/server/**"/>
+    	</packageset>
+        <link href="${javadoc.link.java}"/>
+        <classpath refid="project.classpath"/>
       </javadoc>
     </target>	
 
@@ -301,66 +366,136 @@
         </jar>
     </target>
 
-    <target name="release">
+    <target name="release-jar">
         <antcall target="jar">
-            <param name="jar.name" value="zookeeper-${version}.jar" />
+            <param name="jar.name" value="${build.dir}/${final.name}.jar" />
         </antcall>
     </target>
     
-    <!-- ====================================================== -->
-    <!-- Build all distribution tar files                       -->
-    <!-- ====================================================== -->
-    <available file="${c.src.dir}/Makefile" property="Makefile.present"/>
-    
-    <target name="c-dist">
-        <fail unless="Makefile.present" 
-            message="Please run 'autoreconf -if &amp;&amp; ./configure' in the ${c.src.dir} directory to generate a Makefile."/>
-        <exec dir="${c.src.dir}" executable="make" failonerror="true">
-            <arg value="VERSION=${version}"/>
-            <arg value="dist"/>
-        </exec>
-        <mkdir dir="${distribution}"/>
-        <copy file="${c.src.dir}/c-client-src-${version}.tar.gz" todir="${distribution}" />
+    <!-- ================================================================== -->
+    <!-- D I S T R I B U T I O N                                            -->
+    <!-- ================================================================== -->
+    <!--                                                                    -->
+    <!-- ================================================================== -->
+    <target name="package" depends="release-jar, javadoc"
+            description="Build distribution">
+      <mkdir dir="${dist.dir}"/>
+      <mkdir dir="${dist.dir}/lib"/>
+      <mkdir dir="${dist.dir}/contrib"/>
+      <mkdir dir="${dist.dir}/bin"/>
+      <mkdir dir="${dist.dir}/docs"/>
+      <mkdir dir="${dist.dir}/docs/api"/>
+
+      <copy todir="${dist.dir}/lib" includeEmptyDirs="false">
+        <fileset dir="${lib.dir}"/>
+      </copy>
+
+      <subant target="package">
+        <!--Pass down the version in case its needed again and the target
+            distribution directory so contribs know where to install to.-->
+        <property name="version" value="${version}"/>
+        <property name="dist.dir" value="${dist.dir}"/>
+        <fileset file="${contrib.dir}/build.xml"/>
+      </subant>  	
+
+      <copy todir="${dist.dir}"> 
+        <fileset file="${build.dir}/${final.name}.jar"/>
+      </copy>
+      
+      <copy todir="${dist.dir}/bin">
+        <fileset dir="bin"/>
+      </copy>
+
+      <copy todir="${dist.dir}/conf">
+        <fileset dir="${conf.dir}" excludes="**/*.template"/>
+      </copy>
+
+      <copy todir="${dist.dir}/docs">
+        <fileset dir="${docs.dir}" />
+        <fileset dir="${build.docs}"/>
+      </copy>
+
+      <copy todir="${dist.dir}">
+        <fileset dir=".">
+          <include name="*.txt" />
+        </fileset>
+      </copy>
+
+      <copy todir="${dist.dir}/src" includeEmptyDirs="true">
+        <fileset dir="src" excludes="**/*.template **/docs/build/**/*"/>
+      </copy>
+  	  
+      <copy todir="${dist.dir}/" file="build.xml"/>
+
+      <chmod perm="ugo+x" type="file" parallel="false">
+        <fileset dir="${dist.dir}/bin"/>
+        <fileset dir="${dist.dir}/src/contrib/">
+          <include name="*/bin/*" />
+        </fileset>
+      </chmod>
     </target>
-    
-    <target name="dist" depends="release">
-        <mkdir dir="${distribution}"/>
-        <tar destfile="${distribution}/java-src-${version}.tar.gz" compression="gzip">
-            <tarfileset dir="${java.src.dir}" includes="src/**,jmx/**,lib/**,ChangeLog" 
-                prefix="zookeeper/java"/>
-            <tarfileset dir="${test.src.dir}" includes="com/**,config/**" 
-                prefix="zookeeper/test"/>
-            <tarfileset dir="${basedir}" 
-                includes="zookeeper.jute,build.xml,conf/*,bin/*,README,LICENSE" 
-                prefix="zookeeper"/>
-            <tarfileset dir="${revision.dir}" prefix="zookeeper/java"/>
-        </tar>
-        <tar destfile="${distribution}/java-bin-${version}.tar.gz" compression="gzip">
-            <tarfileset file="zookeeper-${version}.jar" prefix="zookeeper/lib"/>
-            <tarfileset dir="${lib.dir}" includes="log4j*" 
-                prefix="zookeeper/lib"/>
-            <tarfileset dir="${basedir}" includes="conf/*,bin/*,README,LICENSE" 
-                prefix="zookeeper"/>
-        </tar>
-        <antcall target="c-dist"/>
-        <tar destfile="zookeeper-${version}.tar.gz" compression="gzip">
-            <tarfileset dir="${distribution}"/>
-        </tar>
+
+    <!-- ================================================================== -->
+    <!-- Make release tarball                                               -->
+    <!-- ================================================================== -->
+    <target name="tar" depends="package" description="Make release tarball">
+      <macro_tar param.destfile="${build.dir}/${final.name}.tar.gz">
+        <param.listofitems>
+          <tarfileset dir="${build.dir}" mode="664">
+            <exclude name="${final.name}/bin/*" />
+            <exclude name="${final.name}/contrib/*/bin/*" />
+            <include name="${final.name}/**" />
+          </tarfileset>
+          <tarfileset dir="${build.dir}" mode="755">
+            <include name="${final.name}/bin/*" />
+            <include name="${final.name}/contrib/*/bin/*" />
+          </tarfileset>
+        </param.listofitems>
+      </macro_tar>
+    </target>
+
+    <target name="binary" depends="package"
+            description="Make tarball without source and documentation">
+      <macro_tar param.destfile="${build.dir}/${final.name}-bin.tar.gz">
+        <param.listofitems>
+          <tarfileset dir="${build.dir}" mode="664">
+            <include name="${final.name}/src/c/**" />
+            <exclude name="${final.name}/src/c/generated/**" />
+          </tarfileset>
+          <tarfileset dir="${build.dir}" mode="664">
+            <exclude name="${final.name}/bin/*" />
+            <exclude name="${final.name}/src/**" />
+            <exclude name="${final.name}/docs/**" />
+            <include name="${final.name}/**" />
+          </tarfileset>
+          <tarfileset dir="${build.dir}" mode="755">
+            <include name="${final.name}/bin/*" />
+          </tarfileset>
+        </param.listofitems>
+      </macro_tar>
     </target>
-    
+
     <!-- ====================================================== -->
     <!-- Clean.  Delete the build files, and their directories  -->
     <!-- ====================================================== -->
-    <target name="clean">
-        <delete dir="${build.dir}" />
-        <delete dir="${src_generated.dir}" />
-        <delete dir="${csrc_generated.dir}" />
-        <delete file="${jar.name}" />
-        <delete dir="${distribution}"/>
-        <delete dir="${revision.dir}"/>
-        <delete>
-            <fileset dir="${basedir}" includes="*.jar,*.tar.gz"/>
-        </delete>
+    <target name="clean" depends="clean-contrib"
+            description="Clean.  Delete the build files, and their directories">
+      <delete dir="${build.dir}"/>
+      <delete dir="${docs.src}/build"/>
+      <delete dir="${src_generated.dir}" />
+      <delete dir="${csrc_generated.dir}" />
+      <delete file="${jar.name}" />
+      <delete dir="${distribution}"/>
+      <delete dir="${revision.dir}"/>
+      <delete>
+        <fileset dir="${basedir}" includes="*.jar,*.tar.gz"/>
+      </delete>
+    </target>
+
+    <target name="clean-contrib">
+      <subant target="clean">        
+        <fileset file="${contrib.dir}/build.xml"/>
+      </subant>  	
     </target>
 
     <!-- ====================================================== -->

Added: hadoop/zookeeper/trunk/src/contrib/build-contrib.xml
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/build-contrib.xml?rev=693912&view=auto
==============================================================================
--- hadoop/zookeeper/trunk/src/contrib/build-contrib.xml (added)
+++ hadoop/zookeeper/trunk/src/contrib/build-contrib.xml Wed Sep 10 10:49:26 2008
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+
+<!-- Imported by contrib/*/build.xml files to share generic targets. -->
+
+<project name="zookeeperbuildcontrib">
+
+  <property name="name" value="${ant.project.name}"/>
+  <property name="root" value="${basedir}"/>
+
+  <property name="hadoop.root" location="${root}/../../../"/>
+
+  <property name="build.dir" location="${hadoop.root}/build/contrib/${name}"/>
+
+  <!-- to be overridden by sub-projects -->
+  <target name="check-contrib"/>
+  <target name="init-contrib"/>
+
+  <!-- ====================================================== -->
+  <!-- Stuff needed by all targets                            -->
+  <!-- ====================================================== -->
+  <target name="init" depends="check-contrib" unless="skip.contrib">
+    <echo message="contrib: ${name}"/>
+    <mkdir dir="${build.dir}"/>
+    <antcall target="init-contrib"/>
+  </target>
+
+  <!-- ====================================================== -->
+  <!-- Compile a contrib's files                              -->
+  <!-- ====================================================== -->
+  <target name="compile" depends="init">
+    <mkdir dir="${build.dir}"/>
+    <copy todir="${build.dir}">
+      <fileset dir="${basedir}">
+        <exclude name="**/VERSION"/>
+      </fileset>
+    </copy>
+    <exec executable="echo" output="${build.dir}/VERSION">
+      <arg line="${version}" />
+    </exec>
+  </target>
+
+
+  <!-- ====================================================== -->
+  <!-- Package a contrib's files                              -->
+  <!-- ====================================================== -->
+  <target name="package" depends="compile">
+    <mkdir dir="${dist.dir}/contrib/${name}"/>
+    <copy todir="${dist.dir}/contrib/${name}">
+      <fileset dir="${build.dir}"/>
+    </copy>
+  </target>
+
+  <!-- ================================================================== -->
+  <!-- Clean.  Delete the build files, and their directories              -->
+  <!-- ================================================================== -->
+  <target name="clean">
+    <echo message="contrib: ${name}"/>
+    <delete dir="${build.dir}"/>
+  </target>
+
+</project>

Added: hadoop/zookeeper/trunk/src/contrib/build.xml
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/build.xml?rev=693912&view=auto
==============================================================================
--- hadoop/zookeeper/trunk/src/contrib/build.xml (added)
+++ hadoop/zookeeper/trunk/src/contrib/build.xml Wed Sep 10 10:49:26 2008
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+
+<project name="zookeepercontrib" default="compile" basedir=".">
+  
+  <!-- In case one of the contrib subdirectories -->
+  <!-- fails the build or test targets and you cannot fix it: -->
+  <!-- Then add to fileset: excludes="badcontrib/build.xml" -->
+
+  <!-- ====================================================== -->
+  <!-- Compile contribs.                                      -->
+  <!-- ====================================================== -->
+  <target name="compile">
+    <subant target="compile">
+      <fileset dir="." includes="*/build.xml"/>
+    </subant>
+  </target>
+  
+  <!-- ====================================================== -->
+  <!-- Package contrib jars.                                  -->
+  <!-- ====================================================== -->
+  <target name="package">
+    <subant target="package">
+      <fileset dir="." includes="*/build.xml"/>
+    </subant>
+  </target>
+  
+  <!-- ====================================================== -->
+  <!-- Test all the contribs.                               -->
+  <!-- ====================================================== -->
+  <target name="test">
+    <subant target="test">
+      <fileset dir="." includes="*/build.xml"/>
+    </subant>
+  </target>
+  
+  
+  <!-- ====================================================== -->
+  <!-- Clean all the contribs.                              -->
+  <!-- ====================================================== -->
+  <target name="clean">
+    <subant target="clean">
+      <fileset dir="." includes="*/build.xml"/>
+    </subant>
+  </target>
+
+</project>

Added: hadoop/zookeeper/trunk/src/contrib/zkfuse/build.xml
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/zkfuse/build.xml?rev=693912&view=auto
==============================================================================
--- hadoop/zookeeper/trunk/src/contrib/zkfuse/build.xml (added)
+++ hadoop/zookeeper/trunk/src/contrib/zkfuse/build.xml Wed Sep 10 10:49:26 2008
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+
+<project name="zkfuse" default="compile">
+  <import file="../build-contrib.xml"/>
+</project>

Modified: hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/DataTree.java
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/DataTree.java?rev=693912&r1=693911&r2=693912&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/DataTree.java (original)
+++ hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/DataTree.java Wed Sep 10 10:49:26 2008
@@ -151,7 +151,7 @@
      *                not an ephemeral node.
      * @param zxid
      * @param time
-     * @return
+     * @return the patch of the created node
      * @throws KeeperException
      */
     public String createNode(String path, byte data[], List<ACL> acl,

Modified: hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/quorum/FollowerZooKeeperServer.java
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/quorum/FollowerZooKeeperServer.java?rev=693912&r1=693911&r2=693912&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/quorum/FollowerZooKeeperServer.java (original)
+++ hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/quorum/FollowerZooKeeperServer.java Wed Sep 10 10:49:26 2008
@@ -93,9 +93,6 @@
         getFollower().validateSession(cnxn, sessionId, sessionTimeout);
     }
 
-    /**
-     * @return
-     */
     public HashMap<Long, Integer> getTouchSnapshot() {
         if (sessionTracker != null) {
             return ((FollowerSessionTracker) sessionTracker).snapshot();

Modified: hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/quorum/Leader.java
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/quorum/Leader.java?rev=693912&r1=693911&r2=693912&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/quorum/Leader.java (original)
+++ hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/quorum/Leader.java Wed Sep 10 10:49:26 2008
@@ -511,8 +511,7 @@
     /**
      * Process sync requests
      * 
-     * @param QuorumPacket p
-     * @return void
+     * @param r the request
      */
     
     public void processSync(Request r){
@@ -529,8 +528,8 @@
     /**
      * Set FollowerHandler for sync.
      * 
-     * @param QuorumPacket p
-     * @return void
+     * @param f
+     * @param s
      */
         
     synchronized public void setSyncHandler(FollowerHandler f, long s){
@@ -540,8 +539,8 @@
     /**
      * Sends a sync message to the appropriate server
      * 
-     * @param request
-     * @return void
+     * @param f
+     * @param r
      */
             
     public void sendSync(FollowerHandler f, Request r){
@@ -559,8 +558,7 @@
      * lets the leader know that a follower is capable of following and is done
      * syncing
      * 
-     * @param handler
-     *                handler of the follower
+     * @param handler handler of the follower
      * @return last proposed zxid
      */
     synchronized public long startForwarding(FollowerHandler handler,

Modified: hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/quorum/QuorumPeer.java
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/quorum/QuorumPeer.java?rev=693912&r1=693911&r2=693912&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/quorum/QuorumPeer.java (original)
+++ hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/quorum/QuorumPeer.java Wed Sep 10 10:49:26 2008
@@ -153,7 +153,6 @@
      * The response has the xid, the id of this server, the id of the leader,
      * and the zxid of the leader.
      *
-     * @author breed
      *
      */
     class ResponderThread extends Thread {

Added: hadoop/zookeeper/trunk/src/java/main/overview.html
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/main/overview.html?rev=693912&view=auto
==============================================================================
--- hadoop/zookeeper/trunk/src/java/main/overview.html (added)
+++ hadoop/zookeeper/trunk/src/java/main/overview.html Wed Sep 10 10:49:26 2008
@@ -0,0 +1,9 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+   <title>ZooKeeper</title>
+</head>
+<body>
+ZooKeeper is a service for coordinating processes of distributed applications.
+</body>
+</html>

Modified: hadoop/zookeeper/trunk/src/java/test/org/apache/zookeeper/test/OOMTest.java
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/test/org/apache/zookeeper/test/OOMTest.java?rev=693912&r1=693911&r2=693912&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/test/org/apache/zookeeper/test/OOMTest.java (original)
+++ hadoop/zookeeper/trunk/src/java/test/org/apache/zookeeper/test/OOMTest.java Wed Sep 10 10:49:26 2008
@@ -37,7 +37,6 @@
 import org.apache.zookeeper.server.ZooKeeperServer;
 
 /**
- * @author breed
  *
  */
 public class OOMTest extends TestCase implements Watcher {

Modified: hadoop/zookeeper/trunk/src/java/test/org/apache/zookeeper/test/RecoveryTest.java
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/test/org/apache/zookeeper/test/RecoveryTest.java?rev=693912&r1=693911&r2=693912&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/test/org/apache/zookeeper/test/RecoveryTest.java (original)
+++ hadoop/zookeeper/trunk/src/java/test/org/apache/zookeeper/test/RecoveryTest.java Wed Sep 10 10:49:26 2008
@@ -40,7 +40,6 @@
 import org.junit.Test;
 
 /**
- * @author breed
  *
  */
 public class RecoveryTest extends TestCase implements Watcher {