Skip to content

feat: Configure or disable the FDv1 fallback per connection mode - #420

Merged
kinyoklion merged 2 commits into
mainfrom
rlamb/fdv1-fallback-mode-config
Nov 20, 2026
Merged

kinyoklion merged 2 commits into
mainfrom
rlamb/fdv1-fallback-mode-config

Conversation

@kinyoklion

@kinyoklion kinyoklion commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Summary

A customized connection mode always got the SDK's default FDv1 fallback, with no way to change its poll interval or endpoint or to remove it. ConnectionModeBuilder now has:

  • fdv1FallbackSynchronizer(FDv1FallbackSynchronizerEntry): the entry comes from DataSystemComponents.fdv1FallbackSynchronizer() and has pollIntervalMillis(int) and serviceEndpointsOverride(...), like PollingSynchronizerEntry. The fallback synchronizer polls the override's polling endpoint when one is given, and the SDK's polling endpoint otherwise.
  • disableFdv1Fallback(): the mode has no FDv1 fallback.

A mode that does neither keeps the default fallback for that mode, as before.

Disabling the fallback depends on launchdarkly/sdk-specs#281. The contract test "directive without FDv1 fallback configured halts the data system" needs the halting in #413 to pass with the fallback disabled; on main the SDK ignores the directive when a mode has no fallback.

Tested with new unit tests. The SDK's unit tests pass locally, on this branch and merged with #413.

Opened from termag

SDK-3492


Note

Overview
Custom connection modes no longer always inherit the SDK’s default FDv1 fallback with no overrides. ConnectionModeBuilder now exposes fdv1FallbackSynchronizer(FDv1FallbackSynchronizerEntry) (via DataSystemComponents.fdv1FallbackSynchronizer()) to set poll interval and optional polling service endpoints, and disableFdv1Fallback() to omit FDv1 fallback for that mode only. Unconfigured modes still keep the default fallback when they have data sources; empty overrides still get no fallback.

DataSystemBuilder.buildModeTable applies those choices when building ModeDefinition. FDv1PollingSynchronizerBuilderImpl builds from the new entry and honors endpoint overrides through StandardEndpoints.selectBaseUri.

Unit tests cover builder state, mode-table wiring, and HTTP/poll behavior for configured fallbacks.

Reviewed by Cursor Bugbot for commit f030c11. Bugbot is set up for automated code reviews on this repo. Configure here.

ConnectionModeBuilder gains fdv1FallbackSynchronizer(), which takes an
FDv1FallbackSynchronizerEntry from DataSystemComponents.fdv1FallbackSynchronizer()
with a poll interval and a service endpoints override, and
disableFdv1Fallback(), which leaves the mode with no FDv1 fallback. A mode
that does neither keeps the SDK's default FDv1 fallback for that mode.

The FDv1 fallback synchronizer polls the override's polling endpoint when
one is given and the SDK's polling endpoint otherwise.

Generated-by: termag
@kinyoklion
kinyoklion marked this pull request as ready for review November 12, 2026 17:52
@kinyoklion
kinyoklion requested a review from a team as a code owner November 12, 2026 17:52

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk: medium.

Automated risk review (dry run): Medium

This PR would not be automatically approved. Human approval required.

Why: This adds public ConnectionModeBuilder APIs to configure or disable the FDv1 fallback and wires them through DataSystemBuilder and FDv1FallbackSynchronizerEntry, which is a meaningful SDK data-system behavior change. Cursor Bugbot completed with no findings, but Medium is above the Low auto-approve threshold, and no reviewers were assigned.

If you disagree with this review, share this PR in #feedback-agent-approvals or submit a changes-requested review explaining why.

Open in Web View Automation 

Sent by Cursor Approval Agent: Dry-Run PR Approver

@cursor cursor Bot added the risk:medium label Nov 20, 2026
@kinyoklion
kinyoklion merged commit 342150e into main Nov 20, 2026
8 checks passed
@kinyoklion
kinyoklion deleted the rlamb/fdv1-fallback-mode-config branch November 20, 2026 16:59
kinyoklion pushed a commit that referenced this pull request Nov 20, 2026
🤖 I have created a release *beep* *boop*
---


##
[5.19.0](5.18.0...5.19.0)
(2026-11-20)


### Features

* Configure or disable the FDv1 fallback per connection mode
([#420](#420))
([342150e](342150e))


### Bug Fixes

* Record no variation in events when a typed evaluation has the wrong
type
([#432](#432))
([0298fb0](0298fb0))
* Update launchdarkly-java-sdk-internal to 1.13.1
([#435](#435))
([24f56e6](24f56e6))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Overview**
> This **release-only** PR bumps the Android client SDK from **5.18.0**
to **5.19.0** in `.release-please-manifest.json`, `gradle.properties`,
and adds the matching **5.19.0** section to `CHANGELOG.md`.
> 
> That changelog documents what ships in this release (already merged
elsewhere): **per–connection-mode control to configure or disable FDv1
fallback**, **analytics behavior that records no variation when a typed
evaluation gets the wrong type**, and a **dependency bump** to
`launchdarkly-java-sdk-internal` **1.13.1**. The diff itself does not
include application code—only version and release notes.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
ef1e558. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants