Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Conversation

@LaunchDarklyCI
Copy link
Contributor

@LaunchDarklyCI LaunchDarklyCI commented Apr 21, 2020

[4.13.0] - 2020-04-21

Added:

  • The new methods Components.httpConfiguration() and LDConfig.Builder.http(), and the new class HttpConfigurationBuilder, provide a subcomponent configuration model that groups together HTTP-related options such as connectTimeoutMillis and proxyHost - similar to how Components.streamingDataSource() works for streaming-related options or Components.sendEvents() for event-related options. The individual LDConfig.Builder methods for those options will still work, but are deprecated and will be removed in version 5.0.
  • EvaluationReason now has getter methods like getRuleIndex() that were previously only on specific reason subclasses. The subclasses will be removed in version 5.0.

Changed:

  • In streaming mode, the SDK will now drop and restart the stream connection if either 1. it receives malformed data (indicating that some data may have been lost before reaching the application) or 2. you are using a database integration (a persistent feature store) and a database error happens while trying to store the received data. In both cases, the intention is to make sure updates from LaunchDarkly are not lost; restarting the connection causes LaunchDarkly to re-send the entire flag data set. This makes the Java SDK's behavior consistent with other LaunchDarkly server-side SDKs.

(Note that this means if there is a sustained database outage, you may see repeated reconnections as the SDK receives the data from LaunchDarkly again, tries to store it again, and gets another database error. Starting in version 5.0, there will be a more efficient mechanism in which the stream will only be restarted once the database becomes available again; that is not possible in this version because of limitations in the feature store interface.)

Fixed:

  • Network errors during analytics event delivery could cause an unwanted large exception stacktrace to appear as part of the log message. This has been fixed to be consistent with the SDK's error handling in general: a brief message is logged at ERROR or WARN level, and the stacktrace only appears if you have enabled DEBUG level.

Deprecated:

  • LDConfig.Builder methods connectTimeout, connectTimeoutMillis, proxyHost, proxyPort, proxyUsername, proxyPassword, sslSocketFactory, wrapperName, and wrapperVersion. Use LDConfig.Builder.http() and Components.httpConfiguration() instead.
  • EvaluationReason subclasses. Use the property getter methods on EvaluationReason instead.
  • The built-in New Relic integration will be removed in the 5.0 release. Application code is not affected by this change since the integration was entirely reflection-based and was not exposed in the public API.

eli-darkly and others added 30 commits March 13, 2019 13:46
bump eventsource version so we're no longer getting JSR305 annotations
…s-clarification

extract gradle properties clarification to separate PR
Removed .fossa.yml, removed fossa job from circleci, removed fossa ba…
* artifact/repository rename + doc update

* cleaning up markdown files

* cleaning up markdown files

* cleaning up markdown files

* cleaning up markdown files

* absolute contributing url

* adding "server-side" to the title

* adding "server-side" to the title

* relative link

* add a note to the changelog about the artifact name change
…per build (#126)

* re-introduce ossrh properties which were removed a while back

* adding a comment

* bump felix versions
LaunchDarklyCI and others added 23 commits January 30, 2020 23:45
use Set instead of List for user targets
…eads

(4.x) change in-memory store to use an immutable map and lockless reads
update build to Gradle 6 and streamline packaging tests
(4.x) add getters for all properties on EvaluationReason; deprecate subclasses
(4.x) add scoped configuration for HTTP options
@eli-darkly eli-darkly requested a review from bwoskow-ld April 21, 2020 22:43
Copy link
Member

@bwoskow-ld bwoskow-ld left a comment

Choose a reason for hiding this comment

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

👍

@LaunchDarklyCI LaunchDarklyCI merged commit fc104d7 into master Apr 22, 2020
@LaunchDarklyCI LaunchDarklyCI deleted the release-4.13.0 branch April 22, 2020 00:41
eli-darkly added a commit that referenced this pull request Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants