Skip to content

Is ResourceEventHandler thread-safe? #7344

@ivanchuchulski

Description

@ivanchuchulski

Hello,

We're using ResourceEventHandler to get notified about changes for K8s resources, which can get changed frequently (EndpointSlices) and we're concerned if the underlying implementation is thread-safe. We're concerned what happens in the following cases:

  • can multiple executions of onAdd method for example can happen simultaneously by different threads
  • execution of onAdd, onUpdate or onDelete can happen simultaneously by different threads (i.e. "add" and "update" events are to be processed and methods get do the methods the triggered one after another or in parallel)

We've consulted the docs, but there concerns about blocking are listed from which we can't answer our questions.

Best Regards,
Ivan Chuchuslki

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions