Skip to content

[extension/k8s_leader_elector] Fix data race by deferring leader election callbacks until the collector signals ready#45843

Open
constanca-m wants to merge 8 commits intoopen-telemetry:mainfrom
constanca-m:fix-k8s-leader-elector
Open

[extension/k8s_leader_elector] Fix data race by deferring leader election callbacks until the collector signals ready#45843
constanca-m wants to merge 8 commits intoopen-telemetry:mainfrom
constanca-m:fix-k8s-leader-elector

Conversation

@constanca-m
Copy link
Contributor

Description

Fix data race by deferring leader election callbacks until the collector signals ready

Link to tracking issue

Fixes #45841.

Testing

Unit test refactored.

Documentation

Comments added in the code and README updated.

@github-actions github-actions bot added the processor/k8sattributes k8s Attributes processor label Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

k8sleaderelector: Callbacks can fire before other extensions finish starting, causing data races

2 participants