Skip to content

Conversation

@kinyoklion
Copy link
Member

@kinyoklion kinyoklion commented Jan 30, 2026

Note

Medium Risk
Touches core file data loading/watching and persistence semantics, and changes threading/update flow by routing legacy DataSource behavior through the new FDv2 FileSynchronizer. Errors or edge cases could affect startup initialization and file auto-update behavior.

Overview
Adds FDv2 support for file-based flag data by introducing FileData.initializer() (one-shot load) and FileData.synchronizer() (streaming + optional file watching) that emit FDv2SourceResult change sets/statuses.

Refactors the legacy FileDataSourceImpl to delegate all loading/watching to the new FileSynchronizer, centralizes parsing/loading logic in a shared FileDataSourceBase, and introduces a new shouldPersist option (legacy dataSource() defaults to persisting for compatibility; FDv2 initializer/synchronizer default to not persisting). Also upgrades launchdarkly-java-sdk-common/launchdarkly-java-sdk-internal and switches IterableAsyncQueue usage to the internal library implementation, removing the local class/tests and adding new FDv2 file integration tests.

Written by Cursor Bugbot for commit 22aefdd. This will update automatically on new commits. Configure here.

@kinyoklion kinyoklion force-pushed the rlamb/sdk-1562/fdv2-file-data-source branch from e613d7c to e7ada4d Compare January 30, 2026 21:09
@kinyoklion kinyoklion force-pushed the rlamb/sdk-1562/fdv2-file-data-source branch from e7ada4d to 1a548dd Compare January 30, 2026 21:11
@kinyoklion

This comment was marked as outdated.

@kinyoklion

This comment was marked as outdated.

@kinyoklion
Copy link
Member Author

bugbot review

@kinyoklion kinyoklion marked this pull request as ready for review January 30, 2026 23:52
@kinyoklion kinyoklion requested a review from a team as a code owner January 30, 2026 23:52
@tanderson-ld tanderson-ld self-requested a review February 2, 2026 20:29
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@kinyoklion kinyoklion merged commit b50f684 into main Feb 3, 2026
21 checks passed
@kinyoklion kinyoklion deleted the rlamb/sdk-1562/fdv2-file-data-source branch February 3, 2026 22:40
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.

3 participants