Skip to content

Conversation

@AndyButland
Copy link
Contributor

#19760 cherry-picked for 16 with conflicts resolved.

Copilot AI review requested due to automatic review settings July 21, 2025 10:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds defensive coding to prevent race conditions and duplicate initialization in the member application initializer during Umbraco startup. The changes ensure thread-safe initialization and prevent subscriber server roles from modifying member applications.

  • Adds thread synchronization using SemaphoreSlim to prevent concurrent initialization
  • Implements server role checking to skip initialization on subscriber instances
  • Introduces initialization state tracking to prevent duplicate operations

@umbraco umbraco deleted a comment from Copilot AI Jul 21, 2025
Copy link
Contributor

@kjac kjac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@kjac kjac enabled auto-merge (squash) July 21, 2025 10:45
@kjac kjac merged commit a0406b1 into main Jul 21, 2025
24 of 25 checks passed
@kjac kjac deleted the v16/improvement/defensive-updates-for-member-application branch July 21, 2025 11:19
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.

3 participants