Skip to content

[Bug Fix] Refactor Linux container management to avoid race condition that leads the host to initialize placeholder (warmup) function #10848

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 26 commits into from
Mar 26, 2025

Conversation

satvu
Copy link
Member

@satvu satvu commented Feb 13, 2025

Issue describing the changes in this PR

resolves #10725

Pull request checklist

IMPORTANT: Currently, changes must be backported to the in-proc branch to be included in Core Tools and non-Flex deployments.

  • Backporting to the in-proc branch is not required
    *** Otherwise: Link to backporting PR** - backport PR
  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • My changes do not require diagnostic events changes
    • Otherwise: I have added/updated all related diagnostic events and their documentation (Documentation issue linked to PR)
  • I have added all required tests (Unit tests, E2E tests)

This change introduces a new, asynchronous method for assigning an instance in order to resolve the race condition described in #10725. It also maintains the existing "fire and forget" method which is necessary for the HTTP call here in the instance controller.

This PR also includes a refactor of flaky tests, removing calls of Task.Delay() and switching to the use of the async method for multiple E2E and integration scenarios.

@satvu satvu requested a review from a team as a code owner February 13, 2025 20:58
@satvu satvu requested review from fabiocav and jviau February 13, 2025 21:00
@satvu satvu marked this pull request as draft February 19, 2025 23:28
@satvu satvu requested a review from jviau February 19, 2025 23:47
@satvu satvu marked this pull request as ready for review February 21, 2025 19:45
@satvu satvu requested a review from jviau February 26, 2025 23:33
@satvu satvu requested a review from fabiocav February 27, 2025 22:12
@satvu satvu requested a review from jviau February 28, 2025 22:24
@satvu satvu requested a review from jviau March 3, 2025 23:50
@satvu satvu requested a review from fabiocav March 18, 2025 17:30
@satvu satvu merged commit 65a69cd into dev Mar 26, 2025
9 checks passed
@satvu satvu deleted the satvu/linux-container-refactor branch March 26, 2025 18:42
satvu added a commit that referenced this pull request Mar 26, 2025
… that leads the host to initialize placeholder (warmup) function (#10848)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Race condition leads the host to initialize placeholder (warmup) function in Linux environments
3 participants