Skip to content

fix(inventory): remove static initializers from AWS client producers …#616

Merged
jeastham1993 merged 1 commit intomainfrom
fix/inventory-servcice
Mar 4, 2026
Merged

fix(inventory): remove static initializers from AWS client producers …#616
jeastham1993 merged 1 commit intomainfrom
fix/inventory-servcice

Conversation

@jeastham1993
Copy link
Copy Markdown
Collaborator

…to prevent Vert.x blocked thread warnings

Static blocks in DynamoDbClientProducer and SSMClientProducer ran on the Vert.x event loop thread during class loading, causing AwsCrtHttpClient native library JAR reads to block the thread for >2s (Vert.x limit is 2s). Moved client construction into @produces @ApplicationScoped methods, matching the existing pattern in EventBridgeClientProducer.

What does this PR do?

Motivation

Testing Guidelines

Additional Notes

Types of Changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog

…to prevent Vert.x blocked thread warnings

Static blocks in DynamoDbClientProducer and SSMClientProducer ran on the
Vert.x event loop thread during class loading, causing AwsCrtHttpClient
native library JAR reads to block the thread for >2s (Vert.x limit is 2s).
Moved client construction into @produces @ApplicationScoped methods, matching
the existing pattern in EventBridgeClientProducer.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@jeastham1993 jeastham1993 merged commit 078f92f into main Mar 4, 2026
7 of 8 checks passed
@jeastham1993 jeastham1993 deleted the fix/inventory-servcice branch March 4, 2026 17:51
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.

1 participant