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

Concurrency issues around n.localNode #21085

Open
aanm opened this issue Aug 25, 2022 · 2 comments
Open

Concurrency issues around n.localNode #21085

aanm opened this issue Aug 25, 2022 · 2 comments
Assignees
Labels
kind/bug This is a bug in the Cilium logic.

Comments

@aanm
Copy link
Member

aanm commented Aug 25, 2022

With e52fe1d, the n.localNode variable is not being protected on all places. For example

if err := n.mutateNodeResource(nodeResource); err != nil {
, which is inside UpdateCiliumNodeResource, is being executed from a public function where the n.localNodeLock is being held sometimes but not everytime.

cc @gandro

@aanm aanm added the kind/bug This is a bug in the Cilium logic. label Aug 25, 2022
@gandro
Copy link
Member

gandro commented Aug 25, 2022

I think this is a duplicate of #19884?

But the code might have changed since.

@aanm
Copy link
Member Author

aanm commented Aug 25, 2022

Oh, it might be related but it looks like #19884 references different places 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This is a bug in the Cilium logic.
Projects
None yet
Development

No branches or pull requests

2 participants