Skip to content

fix: Apply the minimum poll interval to FDv2 polling data sources - #568

Merged
keelerm84 merged 2 commits into
feat/10.xfrom
mk/SDK-3479/fdv2-gaps
Nov 6, 2026
Merged

keelerm84 merged 2 commits into
feat/10.xfrom
mk/SDK-3479/fdv2-gaps

Conversation

@keelerm84

@keelerm84 keelerm84 commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

fix: Report OFF only when the FDv2 data system stops

Summary

This closes gaps between the FDv2 and FDv1 data systems before FDv1 is removed. It fixes two behaviors and adds FDv2 tests for what only FDv1 tested so far.

Minimum poll interval. Config.poll_interval raises an interval below 30 seconds to 30 seconds, but an interval set on an FDv2 polling builder or an FDv1 fallback builder could be any value. The builders now apply the same minimum. The v3 contract tests expect this.

Data source status. FDv2 now reports status the same way as the Go SDK and js-core:

  • A synchronizer that reports OFF has failed, but the data system goes on with the next synchronizer. The data system now reports that as INTERRUPTED, so status listeners no longer see OFF and then VALID.
  • The data system reports OFF when it stops. Before, the status stayed VALID after the client closed.
  • OFF is the last status that listeners receive. Work that ends after the data system stops cannot report a later status.
  • When no synchronizer is left, the data system still reports OFF.

New tests, sync and async where the code has both:

  • ETag and 304 handling, and SDK request headers, for the FDv2 and FDv1 fallback polling requesters and the streaming sources, against a real HTTP server.
  • The data source and data store status provider rules.
  • Flag change events through prerequisite and segment dependencies in the FDv2 store.
  • Stream init diagnostics on success and on failure.
  • The poll interval minimum and the status changes above.

The FDv2 polling builders and the FDv1 fallback builders now raise a poll
interval below 30 seconds to 30 seconds, as Config.poll_interval does. Before,
an interval set on a builder could be any value.

Also add FDv2 tests for behavior that only the FDv1 data system tested:
- ETag and 304 handling, and SDK request headers, for the polling
  requesters and the streaming sources
- the data source and data store status provider rules
- flag change events through prerequisite and segment dependencies
- stream init diagnostics on success and on failure
A synchronizer that reports OFF has failed, but the data system goes on with
the next synchronizer. The data system now reports that as INTERRUPTED, so
status listeners no longer see OFF followed by VALID. The data system reports
OFF when it stops, which it did not do before, and OFF is now the last
status that listeners receive.
@keelerm84
keelerm84 requested a review from a team as a code owner November 5, 2026 18:52
@keelerm84
keelerm84 merged commit 8e37bdd into feat/10.x Nov 6, 2026
28 of 29 checks passed
@keelerm84
keelerm84 deleted the mk/SDK-3479/fdv2-gaps branch November 6, 2026 19:56
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.

2 participants