Repository navigation
Conversation
Co-Authored-By: Bee Klimt <bklimt@launchdarkly.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
beekld
commented
Oct 19, 2026
beekld
commented
Oct 19, 2026
beekld
commented
Oct 19, 2026
Co-Authored-By: Bee Klimt <bklimt@launchdarkly.com>
This branch has not been deployed
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.
Requirements
Related issues
SDK-2991 (part of SDK-2935); spec change sdk-specs#251 (DATASYSTEM v2 1.6 / CSFDV2 8.3). Reference: cpp-sdks#631.
Describe the solution you've provided
FDv1 fallback is now TTL-based and never terminal.
X-LD-FD-Fallback-TTLheader (polling and streaming) and fromgoodbye.protocolFallbackTTL; a goodbye carrying that field is itself a fallback directive. A fallback directive is now carried as a@Nullable FDv1FallbackTTLonFDv2SourceResult(getFdv1Fallback(); null means no directive). The existingbooleanfactories are kept and maptrueto the default TTL.FDv1FallbackTTLis parsed from the header or goodbye.FDv2DataSourcestops the FDv2 synchronizers (retained inSourceManager), runs the FDv1 synchronizer if configured, and schedules recovery after the TTL. Recovery blocks FDv1 again and rebuilds a fresh FDv2 synchronizer. A repeated directive while on FDv1 only reschedules the TTL.SourceManagernow closes the active source when nothing can replace it.Implementation details
SourceManagertracks which synchronizersfdv1Fallback()blocked, sorecoverFromFdv1Fallback()unblocks only those (FDv2 sources that failed terminally stay blocked).FDv1FallbackTTLTest(valid TTLs unchanged, invalid TTLs land in [1800, 3600], header/goodbye parsing), header and goodbye propagation inDefaultFDv2RequestorTest,FDv2PollingBaseTest,FDv2StreamingSynchronizerTest, andFDv2DataSourceTestrecovery with and without an FDv1 synchronizer (using a 1 s server TTL)../gradlew :launchdarkly-android-client-sdk:testDebugUnitTest javadocpasses locally.Describe alternatives you've considered
Treating "no FDv1 synchronizer" as "ignore the directive" (old behavior); rejected because the spec requires stopping FDv2 and recovering after the TTL regardless.
Additional context
Deliberately unchanged: the ordinary fallback/recovery condition timers (2 min / 5 min) between FDv2 synchronizers, and the contract tests (the harness has no coverage of fallback TTL).
Link to Devin session: https://app.devin.ai/sessions/b4e7a7ad5f06499695e4ce57a2ca6cc2
Open in Devin Desktop: https://app.devin.ai/desktop/session/b4e7a7ad5f06499695e4ce57a2ca6cc2?variant=devin
Requested by: @beekld