curator
curator copied to clipboard
Apache Curator
Scenario: QTY clients call the enter method, QTY-1 clients call the leave method, the number of clients is not enough so it blocks, and the working directory leaves the smallest...
CURATOR-609 - ModeledCache attempts to deserialize empty ZNodes on deletion, resulting in exceptions
On event type NODE_REMOVED, an additional check was added to ensure that the ZNode actually contains data before attempting to deserialize it into a model. If no model is present...
Test running ci build on openjdk11 with release 8
When I use the LeaderLatch to select leader, there is a double-leader phenomenon. The timeline is as follows: 1. The zk cluster switch leader node bescause of zxid overflow. The...
Avoid error-level stack traces closing PathChildrenCache followed by closing CuratorFramework See details in jira: https://issues.apache.org/jira/browse/CURATOR-157
here sleep a shot time to ensure invoking method "publishEvent" after all other eventType case, because I found more event such as NODE_ADD received again after I have received INITIALLIZED...
This ensures that not two nodes are simultaneusly as leaders. If setLeadership(false) is redundant no event would be reported anyway so it is quite safe.
Assuming this is the desired behavior (ie once we timeout we are no longer considered to be in the barrier), this fix will work. By the time the method returns...
Built off of #265 > A new interface (ServiceCacheEventListener) is introduced to expose changed instances, while preserving backward compatibility. > Unit test has updated as well. @JerryChin this PR builds...