accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktur...@apache.org
Subject svn commit: r1350669 - /accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/Initialize.java
Date Fri, 15 Jun 2012 16:01:49 GMT
Author: kturner
Date: Fri Jun 15 16:01:49 2012
New Revision: 1350669

URL: http://svn.apache.org/viewvc?rev=1350669&view=rev
Log:
ACCUMULO-635 create recovery node in zookeeper during init

Modified:
    accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/Initialize.java

Modified: accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/Initialize.java
URL: http://svn.apache.org/viewvc/accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/Initialize.java?rev=1350669&r1=1350668&r2=1350669&view=diff
==============================================================================
--- accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/Initialize.java (original)
+++ accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/Initialize.java Fri
Jun 15 16:01:49 2012
@@ -363,6 +363,7 @@ public class Initialize {
     zoo.putPersistentData(zkInstanceRoot + Constants.ZTABLE_LOCKS, new byte[0], NodeExistsPolicy.FAIL);
     zoo.putPersistentData(zkInstanceRoot + Constants.ZHDFS_RESERVATIONS, new byte[0], NodeExistsPolicy.FAIL);
     zoo.putPersistentData(zkInstanceRoot + Constants.ZNEXT_FILE, new byte[] {'0'}, NodeExistsPolicy.FAIL);
+    zoo.putPersistentData(zkInstanceRoot + Constants.ZRECOVERY, new byte[] {'0'}, NodeExistsPolicy.FAIL);
   }
   
   private static String getInstanceNamePath() throws IOException, KeeperException, InterruptedException
{



Mime
View raw message