Skip to content

Reattempt of informer start() triggers all previous events #1598

Closed as not planned
@jobcespedes

Description

@jobcespedes

Describe the bug
Redo informer start() triggers all previous events. This is being done inside setTimeout periodically as a workaround since informer silently stop receiving events (see: #596)

** Client Version **
1.0.0-rc4

** Server Version **
e.g. 1.26.5

To Reproduce

  1. MakeInformer
  2. Start informer
  3. Set timeout starting informer in 30s
  4. Trigger an update event in k8s for the informer to catch it
  5. Wait for timeout to start informer again
  6. See the update event in step 4 being reproduce again

Expected behavior
A clear and concise description of what you expected to happen.

** Example Code**

const timeoutDelay = 1000 * 30;
const timeout = setTimeout(() => {
  if (informer) {
    informer
      .start()
      .then(() => {
        console.log("Informer refresh connection");
      })
      .catch((err) => {
        console.log("Informer refresh error");
        console.error(err);
      });
  }
}, timeoutDelay);

Environment (please complete the following information):

  • OS: linux
  • NodeJS Version: v18.14.2
  • Cloud runtime: EKS

Additional context
This is probably a secudary issue, being the primary that informer silently stop reproducing events, like in #596

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions