Skip to content

[BTS-2166] Create async registry metrics during feature prepare #21834

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

Merged
merged 3 commits into from
Jul 1, 2025

Conversation

goedderz
Copy link
Member

@goedderz goedderz commented Jul 1, 2025

Scope & Purpose

TSan tests found a race between a scheduler worker thread reading the thread registry's metrics, and the metrics being set in the first place during async_registry::Feature::start().

This PR moves the creation of the metrics to prepare(), so they are set before the scheduler starts.

  • 💩 Bugfix

Checklist

  • Tests (issue found by existing tests)
  • 📖 CHANGELOG entry made
  • Backports (feature did not exist in 3.11)

Related Information

@goedderz goedderz added this to the devel milestone Jul 1, 2025
@goedderz goedderz requested a review from jvolmer July 1, 2025 11:53
@goedderz goedderz self-assigned this Jul 1, 2025
@cla-bot cla-bot bot added the cla-signed label Jul 1, 2025
@goedderz goedderz marked this pull request as ready for review July 1, 2025 12:29
@goedderz goedderz merged commit 6a10ad7 into devel Jul 1, 2025
7 checks passed
@goedderz goedderz deleted the bug-fix/bts-2166-prepare-async-registry-metrics branch July 1, 2025 12:34
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.

2 participants