Skip to content

Conversation

@zhiyuanliang-ms
Copy link
Member

Why this PR?

Fixed a bug introduced in 4.2.0: #546

@zhiyuanliang-ms zhiyuanliang-ms requested a review from Copilot June 30, 2025 09:25
Copy link

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 fixes a bug in the feature configuration fallback mechanism by ensuring that configuration sections are properly initialized only once.

  • Adds a thread-safe lazy initialization method (EnsureInit) to load configuration sections when needed.
  • Removes direct initialization of configuration sections from the constructor.

@zhiyuanliang-ms
Copy link
Member Author

Add a testcaste that fails before the fix and succeed after the fix

@zhiyuanliang-ms zhiyuanliang-ms force-pushed the zhiyuanliang/bug-fix-4.2.0 branch from 7eb0d2f to 92076c1 Compare July 2, 2025 07:37
@zhiyuanliang-ms zhiyuanliang-ms merged commit b3610b5 into main Jul 8, 2025
4 checks passed
zhiyuanliang-ms added a commit that referenced this pull request Jul 9, 2025
* Bug fix - Respect root configuration fallback (#547)

* use Lazy<T> to ensure lazy initialization

* use ensureinit pattern without lock

* version bump 4.2.1 (#548)
@zhiyuanliang-ms zhiyuanliang-ms deleted the zhiyuanliang/bug-fix-4.2.0 branch November 9, 2025 12:24
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