curator
curator copied to clipboard
Apache Curator
ZK is 3.5.1-alpha I have a 3 nodes ZK cluster , readonly mode is enabled. 2 nodes are down, so one of them (QA-E8WIN11) is in read-only (verified by using...
1. 用法 TreeCache treeCache = TreeCache.newBuilder(curatorFramework, path).build(); treeCache.start(); 2. 当path不存在时,start之后会出现死循环调用zookeeper server。 3. 日志 [DEBUG][2019-03-13T16:12:22.190+0800][ClientCnxn.java:818] Reading reply sessionid:0x1689e19ba6a1545, packet:: clientPath:/zk/server-registry/development:/zk/server-registry/development finished:false header:: 6,4 replyHeader:: 6,18307,-101 request:: '/zk/server-registry/development,T response:: [DEBUG][2019-03-13T16:12:22.191+0800][ClientCnxn.java:818] Reading reply...
For some reason, we don't have an abstraction that manages interrupting a thread that's using one of Curator's lock recipes. Our docs say that if you get SUSPENDED/LOST you should...
I create an instance of GroupMember using GroupMember(CuratorFramework client, String membershipPath, String thisId) constructor, invoke GroupMember.start() method and GroupMember.setThisData() method depending on timing of things I sometimes get Exception in...
In the event of a connection reconnect, LeaderLatch calls reset(): https://github.com/apache/curator/blob/9a03ea93937af047e8ad13c2e3e3559520abfb0a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/leader/LeaderLatch.java#L613 Ultimately, this results in another call to getChildren(), which calls checkLeadership(), which registers another getData watch for the ephemeral...
To my understanding, when all threads are trying enter an barrier, they should all success or fail, which means their return values should be the same. But actually they may...
Hey fellows, We're using service discovery extension to refactor our raw zookeeper based service monitor. Every time a service instance exits or joins, the monitor must be notified and push...
The current impl of CuratorFramework.close() does not really give background task a chance to finish. The following steps are currently taken in close(). 1. Set the state to STOPPED 2....
When the following operations are performed in rapid succession, it can lead annoying errors being logged. Create curator framework Create leader latch Start leader latch Close leader latch Close curator...
I recently ran into an issue on some of our nodes caused by network issues between a service and Zookeeper. I have been unable to recreate them as of yet,...