Skip to content

Race condition #681

@maxpain

Description

@maxpain

https://github.com/metallb/metallb/blob/main/internal/layer2/announcer.go#L158
There is a race condition.

We have a big cluster with many pod creation/deletion operations, so the interfaces list on a node changes very often.
In our cluster MetalLB sometimes doesn't announce IPs (L2/ARP) because, at the moment when gratuitous function executes, one of the interfaces in a.arps array becomes dead and this loop crashes with an error, so no more gratuitous announces will be sent.

I think we should ignore these errors and don't crash the loop.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions