Closed
Description
What happened (please include outputs or screenshots):
If the network to Kubernetes API disconnects, watcher just gets stuck forever with no exception.
What you expected to happen:
Watcher should raise an exception in a case of any network issues.
How to reproduce it (as minimally and precisely as possible):
- Run watcher for any object list with some timeout (60 seconds, for example)
- Turn off network adapter on your laptop
- Wait for 60 seconds (timeout) and watcher still does not return the control: thread just stuck
Anything else we need to know?:
Environment:
- Kubernetes version (
kubectl version
): 1.17.0 - OS (e.g., MacOS 10.13.6): Windows 10
- Python version (
python --version
): 3.7 - Python client version (
pip list | grep kubernetes
): 11.0.0