Skip to content

fix: Keep polling after an unexpected HTTP error response - #350

Draft
jsonbailey wants to merge 1 commit into
jb/sdk-2804/retry-statefrom
jb/sdk-3324/polling-retry
Draft

jsonbailey wants to merge 1 commit into
jb/sdk-2804/retry-statefrom
jb/sdk-3324/polling-retry

Conversation

@jsonbailey

@jsonbailey jsonbailey commented Oct 16, 2026 •

Copy link
Copy Markdown

Summary

Stacked on #350. Docs and tests only.

  • identify() and start() keep their current results: a data source failure gives IdentifyError or false. With these retry changes, the SDK then keeps retrying in the background, and flags and status update when data arrives.
  • The IdentifyError, identify(), start() and initialized docs now say this, and point to flag change and data source status listeners.
  • Tests show that flags and status recover after a failure, with no second identify.

@jsonbailey
jsonbailey added this pull request to stack #353 October 16, 2026 06:33
/// effect only when asserts are enabled, as in debug builds and tests. A
/// release build always applies the minimum.
@visibleForTesting
static bool ignorePollingMinimum = false;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test-only hook, used only when asserts are on. iOS has the same idea (ignorePollingMinimum, internal, through @testable), and Android has ComponentsImpl...pollIntervalMillisNoMinimum. Neither test service applies pollIntervalMs yet, so sdk-test-harness #501 must not merge until they do.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may not want to include this in the final iteration, but we can just keep this locally for quick testing, but long term to the long running tests approach.

This branch has not been deployed

No deployments
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