Skip to content

[release/9.4] Force async execution of resource startup#10360

Merged
davidfowl merged 2 commits intorelease/9.4from
backport/pr-10359-to-release/9.4
Jul 15, 2025
Merged

[release/9.4] Force async execution of resource startup#10360
davidfowl merged 2 commits intorelease/9.4from
backport/pr-10359-to-release/9.4

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jul 13, 2025

Backport of #10359 to release/9.4

/cc @davidfowl

Customer Impact

  • Fixes an issue where resource startup could be blocked by a single blocking call, potentially delaying the startup of other resources.
  • Improves reliability and startup performance, especially in scenarios where resources might perform blocking operations during startup.
  • Issue was reproduced while dogfooding the community toolkit with 9.4 builds and this fix unblocks those scenarios.

Testing

  • The issue was reproduced and verified fixed on the same 9.4 build during real-world usage (dogfooding).
  • Manual validation demonstrates that resource startup no longer hangs due to blocking operations.

Risk

  • Low to moderate: The change preemptively dispatches to the threadpool for each resource on startup, which is a targeted behavioral change.
  • There is a minor risk that this could expose latent issues in resource startup ordering, but it is unlikely to negatively impact existing scenarios.

Regression?

  • No. This change is a fix for a regression observed with 9.4 builds, where resources could hang on startup due to blocking calls.

…mptively dispatch to the threadpool per resource on startup. That causes issues blocking other resource's startup because of a single blocking call. This change dispatching preemptively before creating the dcp resource.
@davidfowl
Copy link
Contributor

I cherry-picked #10361 into this PR.

@danmoseley danmoseley added this to the 9.4 milestone Jul 14, 2025
@davidfowl davidfowl merged commit 763280b into release/9.4 Jul 15, 2025
255 checks passed
@davidfowl davidfowl deleted the backport/pr-10359-to-release/9.4 branch July 15, 2025 06:00
@github-actions github-actions bot locked and limited conversation to collaborators Aug 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants