Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Informer stops following updates after ~hour #958

Closed
Michal-lolo opened this issue Jan 5, 2023 · 1 comment
Closed

Informer stops following updates after ~hour #958

Michal-lolo opened this issue Jan 5, 2023 · 1 comment

Comments

@Michal-lolo
Copy link

Describe the bug
Informer stops following updates after ~hour without any error nor connect event. After informer restart it works fine again, so as workaround I've added interval to restart informer, but this is not graceful solution.

** Client Version **
e.g. 0.17.1

** Server Version **
e.g. 1.22.15

To Reproduce

  1. Follow example informer to create new informer.
  2. Wait 65 minutes.
  3. Create/delete/update pod and check the logs.

Expected behavior
Informer should watch pods continuously (reconnect) or at least throw some error in case of interruption/loosing connection with server.

** Example Code**
example informer

Environment (please complete the following information):
Docker image (node-12):

  • OS: Debian GNU/Linux 9 (stretch)
  • NodeJS Version: v12.22.12

Additional context
Add any other context about the problem here.

@Michal-lolo Michal-lolo changed the title Informer stops receiving updates after ~hour Informer stops following updates after ~hour Jan 5, 2023
@brendandburns
Copy link
Contributor

@Michal-lolo there's a pretty extensive discussion of this issue here:

#596

With related links to various solutions. Upgrading nodejs to 16 seems to be one of the necessary ingredients.

I reopened #596 and I'm going to close this issue as a duplicate of that one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants