Skip to content

Comments

[exporter/prometheusremotewrite] Fix WAL wake-up race#46234

Open
ShaanveerS wants to merge 1 commit intoopen-telemetry:mainfrom
ShaanveerS:wal-notify
Open

[exporter/prometheusremotewrite] Fix WAL wake-up race#46234
ShaanveerS wants to merge 1 commit intoopen-telemetry:mainfrom
ShaanveerS:wal-notify

Conversation

@ShaanveerS
Copy link
Contributor

Description

This PR updates WAL reader/writer signaling to avoid missed wake-ups.

Link to tracking issue

Fixes #45288

Testing

stress -p 32 -count 200 on TestExportWithWALEnabled

Use a buffered notify channel and signal only after successful WAL writes to avoid lost wake-ups. Add a regression test for queued notifications when no reader is currently waiting.

Signed-off-by: Shaanveer Singh <shaanver.singh@gmail.com>
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.

[exporter/prometheusremotewriteexporter]: Report for failed tests on main

2 participants