Repository navigation
feat: Configure or disable the FDv1 fallback per connection mode - #420
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 12, 2026 17:52
tanderson-ld
approved these changes
Nov 20, 2026
There was a problem hiding this comment.
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.
Sent by Cursor Approval Agent: Dry-Run PR Approver
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


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.
ConnectionModeBuildernow has:fdv1FallbackSynchronizer(FDv1FallbackSynchronizerEntry): the entry comes fromDataSystemComponents.fdv1FallbackSynchronizer()and haspollIntervalMillis(int)andserviceEndpointsOverride(...), likePollingSynchronizerEntry. 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.
ConnectionModeBuildernow exposesfdv1FallbackSynchronizer(FDv1FallbackSynchronizerEntry)(viaDataSystemComponents.fdv1FallbackSynchronizer()) to set poll interval and optional polling service endpoints, anddisableFdv1Fallback()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.buildModeTableapplies those choices when buildingModeDefinition.FDv1PollingSynchronizerBuilderImplbuilds from the new entry and honors endpoint overrides throughStandardEndpoints.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.