Comments (14)
(I'm using curator 1.0.3)
from curator.
Wow - that seems impossible. The only thing I can think of is that the internal event loop exited. Can you get a thread dump and/or build a test case?
from curator.
Here's a testcase that, from my understanding, should work but doesn't: https://gist.github.com/2157404
It's not exactly the same environment, but the idea is there: 2 servers, kill one to break the Quorum (and the Curator connection here as I only connect to the first server), and I don't get the connection state changes.
from curator.
Dang - I can't reproduce the problem. The test runs fine for me.
from curator.
Describe the environment your test is running in.
from curator.
Hold on - I built a fresh project using the distributed 1.0.3 and I'm reproducing. Stay tuned...
from curator.
Seems strange, I just ran the test again and you're right, it seems to work. But I maintain the original bug, I'm trying to enhance the testcase to make it closer to the original problem, I'll keep you posted.
from curator.
Okay, I'm not 100% sure of the way I'm restarting the ZK server, but the goal is to shutdown a server, break the quorum, and restart it. The RECONNECTED event isn't fired to the listener, and the countdown (3 events) fails.
https://gist.github.com/2163701
from curator.
I'm 90% sure there's a real problem here. But the timing is tricky. I'll keep on it and let you know in the next day or so.
from curator.
Okay great ! Thanks for looking :) Can you just confirm that this new testcase fails for you ?
from curator.
It fails intermittently
from curator.
OK - I've figured it out. The bug is in the test and not Curator. blockUntilConnectedOrTimedOut()
returns true if the connection is successful, but false if the connection timeout elapses. I've found that using these in-memory testing clusters can take a long time to connect. The test needs to increase the connectionTimeoutMs and, possibly, just keep retrying until the connection succeeds.
from curator.
I'm pretty sure there's a bug around here. My real use case shows the issue very easily, but is hard to bundle into a single testcase. I'm on IRC (ahfeel) if you have a few minutes to have a look at it :)
from curator.
I'm not an IRC user. But, you can IM me:
Google: randgalt
Yahoo: jordanz
from curator.
Related Issues (20)
- java.nio.channels.CancelledKeyException HOT 1
- java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build HOT 4
- adding nodes to zookeeper from local properties through archaius HOT 1
- InterProcessMutex is not releasing when called inside a future's onSuccess function. HOT 1
- Curator's Watch triggered two times for the same notification HOT 3
- Curator integration with Exhibitor-values to be provided for ExhibitorEnsembleProvider arguments HOT 1
- What's the plan for releasing changes to this? HOT 3
- org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists HOT 3
- curator use this.client.create().creatingParentsIfNeeded().withMode(CreateMode.PERSISTENT).forPath(path, data); but I find zk didnot have this node. HOT 2
- Link in wiki is broken HOT 1
- Examples Link in Table of Contents leads to 404 HOT 2
- NoSuchMethodError exception HOT 2
- Curator connecting to a secured SASL zookeeper HOT 1
- Background operation retry gave up HOT 1
- ..
- The result of event.getPath() in BackgroundCallback confused me
- Missing method declaration addAuthInfo
- TestingServer cannot start, it always throw FailedServerStartException
- curator 5.3 connect docker zookeeper cluster
- the parent node never delete cause thousands of parent node
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curator.