Skip to content

Watcher stuck forever in a case of network disconnect #1148

Closed
@NikPaushkin

Description

@NikPaushkin

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):

  1. Run watcher for any object list with some timeout (60 seconds, for example)
  2. Turn off network adapter on your laptop
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/supportCategorizes issue or PR as a support question.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions