Skip to content

Bound OpenFeature provider initialization time - #12216

Draft
leoromanovsky wants to merge 1 commit into
masterfrom
agent/java-provider-initialization-deadline
Draft

Bound OpenFeature provider initialization time#12216
leoromanovsky wants to merge 1 commit into
masterfrom
agent/java-provider-initialization-deadline

Conversation

@leoromanovsky

Copy link
Copy Markdown
Contributor

Motivation

The first agentless poll and its retries run on the provider activation thread before the provider timeout starts. With defaults, three 5-second requests and 12–18 seconds of retry delay can consume 27–33 seconds. The separate 30-second provider wait makes total failure time a calculated 57–63 seconds.

A controlled 500 ms blocked first poll with a 100 ms provider timeout took 617 ms before this change.

Changes and Decisions

  • Start one initialization deadline before Feature Flags activation.
  • Count synchronous activation time against the remaining provider wait.
  • Schedule the first poll immediately on the existing configuration executor.
  • Keep retry and late-recovery behavior on the configuration executor.
  • Do not create an additional worker thread.

Validation

The same controlled blocked-poll test completed in 114 ms after the change. The 500 ms poll continued on the configuration thread and did not extend provider initialization.

@leoromanovsky leoromanovsky added type: feature Enhancements and improvements tag: ai generated Largely based on code generated by an AI or LLM comp: openfeature OpenFeature labels Aug 15, 2026
@datadog-prod-us1-4

datadog-prod-us1-4 Bot commented Aug 15, 2026

Copy link
Copy Markdown

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 79.26% (+20.91%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: c77f880 | Docs | Datadog PR Page | Give us feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: openfeature OpenFeature tag: ai generated Largely based on code generated by an AI or LLM type: feature Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant