Comments (6)
That sounds like a reasonable change. Do you fancy making a pull request for it?
from python-etcd3.
Yes, I will make it.
from python-etcd3.
Great, thanks!
from python-etcd3.
Hey @ChristopheDaSilva, any update on this? Need any help?
from python-etcd3.
Similar problem exists when etcd terminates after watch has been initiated.
For example, while following script is running, etcd shutdown does not cause any exception:
c = etcd3.client("127.0.0.1")
print c.get("foo")
stream, cancel = c.watch("foo")
for evt in stream:
print evt
Would the patch mentioned above fix this issue as well?
from python-etcd3.
Hi,
It seems that any call to a client that is not initialized properly never returns.
etcd_con = etcd3.client(host='wrong_host', port=1234)
etcd_con.status()
It hangs and i have to Ctrl-C to stop it.
Traceback:
python test_etcd.py
^CTraceback (most recent call last):
File "test_etcd.py", line 6, in
etcd_con.status()
File "/usr/lib/python2.7/site-packages/etcd3/client.py", line 31, in handler
return f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/etcd3/client.py", line 334, in status
status_response = self.maintenancestub.Status(status_request)
File "/usr/lib64/python2.7/site-packages/grpc/_channel.py", line 506, in call
credentials)
File "/usr/lib64/python2.7/site-packages/grpc/_channel.py", line 500, in _blocking
_handle_event(completion_queue.poll(), state,
File "src/python/grpcio/grpc/_cython/_cygrpc/completion_queue.pyx.pxi", line 114, in grpc._cython.cygrpc.CompletionQueue.poll (src/python/grpcio/grpc/_cython/cygrpc.c:10475)
KeyboardInterrupt
You can test it with any other method like put(), get(), lease() etc..
from python-etcd3.
Related Issues (20)
- get key detail from callback function
- a problem in using lease HOT 1
- client.close() occasionally takes 10s
- python-etcd3 is incompatible with grpcio versions newer than 1.44.0 (1.45+) HOT 5
- etcd3 does not connect to 3.5.0 server but etcd does HOT 1
- Do you still maintain this project? HOT 10
- TypeError: Descriptors cannot not be created directly HOT 1
- hi guy,we need to come up with a new version to fix the previous problem. If there is, I can help.
- Can't use etcd3 package? HOT 6
- locking with python3-etcd3 0.12.0 on etcd 3.4.23 fails? HOT 3
- Release plan after 0.12.0 HOT 1
- Bug in grpcio>=1.54.0 HOT 1
- Installing etcd3 HOT 2
- Let `python-etcd3` renew auth token when expired between calling `Lock.acquire` and `Lock.release`
- Updated release HOT 2
- How can I skip tls verify when I use the cert file?
- etcd3-client throwing error -
- about add_watch_callback HOT 1
- Can you help me upgrade the version number?
- How to "keep-alive" by lease_id? HOT 1
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 python-etcd3.