Skip to content

Flipped AtomicBoolean logic#166

Merged
stevehu merged 1 commit intomasterfrom
165-latest-handler-config-change-breaks-lambda-native-handler-loading-and-test-cases
Mar 31, 2026
Merged

Flipped AtomicBoolean logic#166
stevehu merged 1 commit intomasterfrom
165-latest-handler-config-change-breaks-lambda-native-handler-loading-and-test-cases

Conversation

@KalevGonvick
Copy link
Copy Markdown
Member

The issue was caused by using the wrong AtomicBoolean method.

Copy link
Copy Markdown
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

Fixes handler one-time initialization gating by using the correct AtomicBoolean API so the first call to init() actually performs initialization.

Changes:

  • Replace AtomicBoolean.compareAndExchange(false, true) with compareAndSet(false, true) to ensure the first initialization path executes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@stevehu stevehu merged commit 848bd84 into master Mar 31, 2026
4 checks passed
@stevehu stevehu deleted the 165-latest-handler-config-change-breaks-lambda-native-handler-loading-and-test-cases branch March 31, 2026 19:58
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.

Latest Handler Config Change Breaks Lambda Native Handler Loading and Test Cases

3 participants