hadoop-zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ph...@apache.org
Subject svn commit: r699104 - /hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeper.java
Date Thu, 25 Sep 2008 21:35:59 GMT
Author: phunt
Date: Thu Sep 25 14:35:59 2008
New Revision: 699104

URL: http://svn.apache.org/viewvc?rev=699104&view=rev
Log:
changes for ZOOKEEPER-142 - update docs on max node size

Modified:
    hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeper.java

Modified: hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeper.java
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeper.java?rev=699104&r1=699103&r2=699104&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeper.java (original)
+++ hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeper.java Thu Sep 25 14:35:59
2008
@@ -358,6 +358,9 @@
      * If a node is created successfully, the ZooKeeper server will trigger the
      * watches on the path left by exists calls, and the watches on the parent
      * of the node by getChildren calls.
+     * <p>
+     * The maximum allowable size of the data array is 1 MB (1,048,576 bytes). 
+     * Arrays larger than this will cause a KeeperExecption to be thrown.
      *
      * @param path
      *                the path for the node
@@ -395,8 +398,6 @@
         return response.getPath();
     }
 
-
-
 	/**
      * The Asynchronous version of create. The request doesn't actually until
      * the asynchronous callback is called.
@@ -677,9 +678,12 @@
      * <p>
      * A KeeperException with error code KeeperException.NoNode will be thrown
      * if no node with the given path exists.
-     *
+     * <p>
      * A KeeperException with error code KeeperException.BadVersion will be
      * thrown if the given version does not match the node's version.
+     * <p>
+     * The maximum allowable size of the data array is 1 MB (1,048,576 bytes). 
+     * Arrays larger than this will cause a KeeperExecption to be thrown.
      *
      * @param path
      *                the path of the node
@@ -728,7 +732,6 @@
     }
 
     /**
-     *
      * Return the ACL and stat of the node of the given path.
      * <p>
      * A KeeperException with error code KeeperException.NoNode will be thrown



Mime
View raw message