fixes reordered Oracle curator setup
@@ -111,13 +111,13 @@ public class OracleClient implements AutoCloseable {
Thread.sleep(200);
}
+ leaderSelector = new LeaderSelector(curatorFramework, ZookeeperPath.ORACLE_SERVER, this);
+
pathChildrenCache =
new PathChildrenCache(curatorFramework, ZookeeperPath.ORACLE_SERVER, true);
pathChildrenCache.getListenable().addListener(this);
pathChildrenCache.start();
- leaderSelector = new LeaderSelector(curatorFramework, ZookeeperPath.ORACLE_SERVER, this);
-
connect();
}
doWork();
