Commit Graph

1156 Commits

Author SHA1 Message Date
Olga Maciaszek-Sharma
5401628aed Add retry support for blocking LoadBalancer (#832)
* Add LoadBalancerProperties and BlockingLoadBalancedRetryPolicy. Add spring-retry dependency in LoadBalancer.

* Add BlockingLoadBalancedRetryFactory

* Move retry properties to LoadBalancerRetryProperties.

* Refactor and remove deprecations, fix checkstyle.

* Add BlockingLoadBalancedRetryPolicy to autoconfiguration. Set default retryableStatusCode prop. Fix javadoc.

* Allow using @Order on LoadBalancedRetryFactory beans.

* Add tests. Reformat tests. Add explanatory comments.

* Add documentation.

* Fix javadoc.

* Fix docs after review.

* Change field name.
2020-09-24 17:31:38 +02:00
Dave Syer
f7360b05ad Compatibility check if Spring Boot version is unknown
It is better not to fail the compatibility check if the Spring Boot version is unknown.
2020-09-15 14:18:06 -04:00
Spencer Gibb
5f92501a0d Performance improvements to NamedContextFactory. (#826)
Fixes gh-825
2020-09-15 14:13:17 -04:00
buildmaster
ec264fb23e Bumping versions to 2.2.6.BUILD-SNAPSHOT after release 2020-08-28 19:25:12 +00:00
buildmaster
0cdd6e5aa7 Going back to snapshots 2020-08-28 19:25:12 +00:00
buildmaster
dc3a4674c4 Update SNAPSHOT to 2.2.5.RELEASE 2020-08-28 19:20:48 +00:00
spencergibb
eb571682b7 Removes dependency management for okhttp3 and httpclient
These are managed by boot.

Fixes gh-813
2020-08-25 14:47:41 -04:00
jialindai
fb8b1d8da0 add common classes for TLS properties (#803)
* add common classes for TLS test

* Revert "add common classes for TLS test"

This reverts commit 7f5d076ad3fd628611aaab70215b1c9615affa21.

* add common tls properties

* add unit tests for tls properties
2020-08-24 14:00:09 -04:00
Olga Maciaszek-Sharma
018aae3632 Subscribe on flux earlier. Fixes gh-802. 2020-08-11 13:05:07 +02:00
spencergibb
0be2794631 Fixes s-c-build version to snapshot 2020-08-03 12:54:28 -04:00
buildmaster
6b8776bd3a Bumping versions to 2.2.5.BUILD-SNAPSHOT after release 2020-07-31 20:03:49 +00:00
buildmaster
4cc1a68ebb Going back to snapshots 2020-07-31 20:03:49 +00:00
buildmaster
f290f97816 Update SNAPSHOT to 2.2.4.RELEASE 2020-07-31 19:59:52 +00:00
spencergibb
828912100f Disables failing test.
See gh-802
2020-07-31 15:35:14 -04:00
spencergibb
7c6c32cb87 Mock property source name 2020-07-31 15:04:39 -04:00
Sébastien Deleuze
63ce0d965c Avoid field autowiring in SimpleDiscoveryClientAutoConfiguration (#786)
In order to fix GraalVM compatibility
2020-07-14 11:45:00 +02:00
Olga Maciaszek-Sharma
4eb9dd0f01 Move Request and Response to loadbalancer package. Fixes gh-772. (#773)
* Move Request and Response to loadbalancer package. Fixes gh-772.

* Fix checkstyle.

* Inherit and reference repackaged classes.

* Revert "Inherit and reference repackaged classes."

This reverts commit 02808c5f188d0befa69839efadfc82a9e8887f9b.

* Fix Status enums.

* Make old classes extend the new ones.
2020-07-03 13:51:59 +02:00
Marcin Grzejszczak
5e9f6c2925 Migrated to docs.spring.io & updated sc-build 2020-06-04 13:32:02 +02:00
Olga Maciaszek-Sharma
76db32b181 Fix property name in docs. 2020-06-01 19:30:34 +02:00
buildmaster
7ff8100c19 Bumping versions to 2.2.4.BUILD-SNAPSHOT after release 2020-05-28 17:06:16 +00:00
buildmaster
7fcfceea42 Going back to snapshots 2020-05-28 17:06:16 +00:00
buildmaster
a6191e08f9 Update SNAPSHOT to 2.2.3.RELEASE 2020-05-28 17:02:22 +00:00
Olga Maciaszek-Sharma
a33ca5da43 Update README. 2020-05-27 20:23:57 +02:00
Olga Maciaszek-Sharma
da23fe4f07 Handle exceptions and timeouts new (#767)
* Handle timeouts and exceptions while retrieving instances.

* Update docs.
2020-05-27 20:11:47 +02:00
Olga Maciaszek-Sharma
87e5d7a62b Fix execution thread for blocking and adjusts timing
* Fix execution thread for blocking DiscoveryClientServiceInstanceListSupplier.

* Desynchronise HealthCheck and Cache. Add info about using HealthCheck without Cache to docs.

See gh-760
2020-05-27 10:13:55 -04:00
Olga Maciaszek-Sharma
587f5f568a Gh 760 health check with cache new (#765)
* Cache first element of service instance list flux.

* Invoke destroy() and afterPropertiesSet() in non-bean ServiceInstanceListSupplier delegates.

* Fix return updated instances.

* Fix return updated instances.

(cherry picked from commit 88b2f0e869)
2020-05-26 16:38:04 +02:00
shollander
b828877611 Adds ConditionalOnMissingBean to SimpleDiscoveryProperties.
Fixes gh-759
Fixes gh-762
2020-05-22 11:41:04 -04:00
spencergibb
26dae55042 Adds support for non-enumerable property sources in bootstrap.
Fixes gh-724
2020-05-21 17:01:26 -04:00
Spencer Gibb
a10fbb9b07 Renames ServiceInstanceListSuppliers to ServiceInstanceListSupplierBuilder (#761)
Puts static builder() method on ServiceInstanceListSupplier.

Deprecates ServiceInstanceListSupplier.fixed(Environment) and replaces with fixed(serviceId).
2020-05-21 14:08:09 -04:00
Olga Maciaszek-Sharma
c998d69c66 Add predefined ServiceInstanceListSupplier configurations. 2nd part of gh-741. (#758) 2020-05-18 16:23:48 +02:00
spencergibb
b59a546ce8 Stops casting RandomPropertySource.
This avoids casting errors if property sources are wrapped.

Fixes gh-757
2020-05-15 11:49:17 -04:00
spencergibb
d8034eb31d ignores .sdkmanrc 2020-05-15 11:46:22 -04:00
Olga Maciaszek-Sharma
8dff101d6f Lb configuration builders (#751)
* Adds ServiceInstanceListSuppliers.java with Builder

* Implement TODOs.

* Add javadocs.

* Remove unused type.

* Add test.

* Safer caching config: resolve LoadBalancerCacheManager lazily. Return delegate if LoadBalancerCacheManager not available.

* Switch to using builder in LoadBalancerClientConfiguration.

* Autoformatting with spring-java-format.

* Update docs.

Co-authored-by: Spencer Gibb <spencer@gibb.us>
2020-05-05 17:55:03 +02:00
Olga Maciaszek-Sharma
5f413a7297 Fix capitalisation. 2020-05-04 18:32:42 +02:00
如梦技术
4892418207 spring-cloud-loadbalancer add additional-spring-configuration-metadata.json
# Conflicts:
#	spring-cloud-loadbalancer/src/main/resources/META-INF/additional-spring-configuration-metadata.json
2020-05-04 18:29:22 +02:00
Olga Maciaszek-Sharma
d27b59e6f6 Fix docs on Instance Health-Check for LoadBalancer. Fixes gh-746. 2020-04-30 15:34:15 +02:00
Olga Maciaszek-Sharma
ad5cb2ebb9 Update license comments. 2020-04-23 15:14:47 +02:00
Tim van Baarsen
047bca54e2 #738 (#740)
The default value for management.endpoint.env.post.enabled should be false instead of true.
2020-04-20 10:16:20 -04:00
Ryan Baxter
8519d3dd16 Changing default value to be false. Fixes #738 2020-04-20 10:10:45 -04:00
Ryan Baxter
5ed5bc9253 Add utility method to provide a service if to IdUtils (#721) 2020-04-02 10:57:00 -04:00
Ryan Baxter
bea81f7b51 Cherry picking commit 4119a9c 2020-04-02 10:26:24 -04:00
robotmrv
0e3ea3397d try to fix flaky test (#718)
fixes gh-716
2020-03-25 14:36:45 -04:00
Spencer Gibb
de9882ced9 Ignores failing test because of old boot version.
see gh-717
2020-03-20 15:19:51 -04:00
Spencer Gibb
a03fd4c3f8 Fixes issue 2020-03-20 14:43:47 -04:00
Spencer Gibb
d5dc4465b2 Ignores flaky test.
See gh-1627
2020-03-20 14:40:24 -04:00
Spencer Gibb
128ca4392a Bumps to build 2.3.0.BUILD-SNAPSHOT 2020-03-19 10:48:57 -04:00
Spencer Gibb
7dd88a6e7f Verifies current boot version is in CompatibilityVerifierProperties.
Also fixes support for wildcard 2.2.x beyond boot 2.1.x

fixes gh-715
2020-03-18 17:31:29 -04:00
Spencer Gibb
d679add055 Updates compatible versions to 2.2.x and 2.3.x
see https://github.com/spring-cloud/spring-cloud-build/issues/153
2020-03-18 17:30:13 -04:00
Spencer Gibb
41208021ed Bumps to build 2.2.4.BUILD-SNAPSHOT 2020-03-18 16:55:30 -04:00
Spencer Gibb
e946ef1e79 Adds boot 2.3 compatiblity 2020-03-18 16:48:02 -04:00