Permalink
Browse files

Remove dependencies on BK and ZK SNAPSHOTS

  • Loading branch information...
dgomezferro committed Jan 24, 2012
1 parent 8a89f51 commit 1b1c477829081c04624b2d27dccfc9d062a06c49
Showing with 3 additions and 13 deletions.
  1. +2 −12 pom.xml
  2. +1 −1 src/main/java/com/yahoo/omid/tso/TSOServer.java
View
14 pom.xml
@@ -103,16 +103,6 @@
<artifactId>log4j</artifactId>
<version>1.2.14</version>
</dependency>
- <!-- dependency>
- <groupId>org.apache.zookeeper</groupId>
- <artifactId>bookkeeper</artifactId>
- <version>3.4.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.zookeeper</groupId>
- <artifactId>zookeeper</artifactId>
- <version>3.4.0</version>
- </dependency -->
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
@@ -130,13 +120,13 @@
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
- <version>3.4.0-BK-SNAPSHOT</version>
+ <version>3.4.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.bookkeeper</groupId>
<artifactId>bookkeeper-server</artifactId>
- <version>4.0.0-SNAPSHOT</version>
+ <version>4.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
@@ -222,7 +222,7 @@ public ChannelPipeline getPipeline() throws Exception {
private void recoverState() throws BKException, InterruptedException, KeeperException, IOException {
String servers = StringUtils.join(zkservers, ',');
ZooKeeper zooKeeper = new ZooKeeper(servers, 1000, null);
- BookKeeper bookKeeper = new BookKeeper(zooKeeper);
+ BookKeeper bookKeeper = new BookKeeper(servers);
List<String> children = zooKeeper.getChildren("/ledgers", false);
children.remove("available");

0 comments on commit 1b1c477

Please sign in to comment.