146 Commits

Author SHA1 Message Date
Olga MaciaszekSharma
656aeaa023 Bumping versions to 2.2.10.BUILD-SNAPSHOT after release
This reverts commit 411a180374.
2021-07-07 16:36:27 +02:00
Olga MaciaszekSharma
5885938777 Going back to snapshots
This reverts commit 0e5f7849aa.
2021-07-07 16:35:06 +02:00
buildmaster
02d3e0e192 Bumping versions 2021-07-07 13:04:10 +00:00
Olga MaciaszekSharma
7fc2695e8e Revert "Update SNAPSHOT to 2.2.9.RELEASE"
This reverts commit 3a05d99e92.
2021-07-07 14:55:49 +02:00
Olga MaciaszekSharma
0e5f7849aa Revert "Going back to snapshots"
This reverts commit 5af57fdeee.
2021-07-07 14:55:24 +02:00
Olga MaciaszekSharma
411a180374 Revert "Bumping versions to 2.2.10.BUILD-SNAPSHOT after release"
This reverts commit 27a2a92f46.
2021-07-07 14:55:07 +02:00
buildmaster
27a2a92f46 Bumping versions to 2.2.10.BUILD-SNAPSHOT after release 2021-07-06 14:27:30 +00:00
buildmaster
5af57fdeee Going back to snapshots 2021-07-06 14:27:30 +00:00
buildmaster
3a05d99e92 Update SNAPSHOT to 2.2.9.RELEASE 2021-07-06 14:23:57 +00:00
rodbate
84fb8550c7 Fix blocking discovery client. 2021-07-05 16:19:06 +02:00
buildmaster
6b7772cab4 Bumping versions to 2.2.9.BUILD-SNAPSHOT after release 2021-04-21 15:33:13 +00:00
buildmaster
dee48dd900 Going back to snapshots 2021-04-21 15:33:13 +00:00
buildmaster
2e8cf980cd Update SNAPSHOT to 2.2.8.RELEASE 2021-04-21 15:27:47 +00:00
Olga MaciaszekSharma
61560ef760 Fix flaky test. 2021-03-12 13:24:21 +01:00
Olga Maciaszek-Sharma
8bffa27e9a Instantiate one LoadBalancedRetryFactory bean. (#917) 2021-03-05 16:22:10 +01:00
Tim Ysewyn
894b7d25c9 Log exceptions as errors 2021-03-03 22:17:58 +01:00
Роман Чигвинцев
95a22796eb Fix bug of service instance refetching when repeating health check is activated (#904)
Fixes gh-899

(cherry picked from commit 3d257b43003a02b64c4f7fd97680e7981d0b52f4)
2021-02-17 15:35:39 +01:00
buildmaster
3aff1bea0d Bumping versions to 2.2.8.BUILD-SNAPSHOT after release 2021-02-11 13:11:53 +00:00
buildmaster
c8d0e7f13d Going back to snapshots 2021-02-11 13:11:52 +00:00
buildmaster
d74cd35533 Update SNAPSHOT to 2.2.7.RELEASE 2021-02-11 13:09:01 +00:00
Olga Maciaszek-Sharma
5839758365 Add CaffeineCacheManager class conditions to LoadBalancerCacheAutoConfiguration. (#891) 2021-01-26 17:37:44 +01:00
Olga Maciaszek-Sharma
3493612ab4 Use daemon threads with DefaultLoadBalancerCacheManager. (#890) 2021-01-26 17:29:54 +01:00
Olga Maciaszek-Sharma
65201f8f61 Add RandomLoadBalancer, along with tests and docs. (#868)
# Conflicts:
#	spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/RoundRobinLoadBalancer.java
2020-12-11 17:33:42 +01:00
Olga Maciaszek-Sharma
c1128e5065 Fix @since info. 2020-12-04 18:59:34 +01:00
Olga Maciaszek-Sharma
843cb79649 Support same service instance preference (#862)
* Draft initial implementation.

* Rename default configuration property. Check previously chosen instance for equality.

* Verify previous service instance for null. Add tests.

* Add docs.

* Add javadocs.

* Fix javadocs after review.
2020-12-04 18:18:10 +01:00
Olga Maciaszek-Sharma
cbedae2e82 Allow refetching instances for healthcheck (#855)
* Allow refetching instances by HealthCheckServiceInstanceListSupplier.

* Add docs and javadocs.

* Fix docs after review.
2020-12-01 11:14:14 +01:00
Olga Maciaszek-Sharma
17e9a2af38 Remove LB caching from default health-check config, since HealthCheckServiceInstanceListSupplier has a separate caching mechanism. Fixes gh-849. 2020-11-16 13:11:35 +01:00
buildmaster
259df6f4ee Bumping versions to 2.2.7.BUILD-SNAPSHOT after release 2020-11-09 09:32:26 +00:00
buildmaster
439c966bb8 Going back to snapshots 2020-11-09 09:32:25 +00:00
buildmaster
30bf7336c9 Update SNAPSHOT to 2.2.6.RELEASE 2020-11-09 09:26:11 +00:00
alchemy24
72762d76ed Deprecates SimpleServiceInstance in favor of DefaultServiceInstance (#835)
* Initial Commit

* Added URI to DefaultServiceInstance

* Added default constructor

* Fixed PR Comments
2020-10-12 13:41:39 +02:00
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
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
Olga Maciaszek-Sharma
018aae3632 Subscribe on flux earlier. Fixes gh-802. 2020-08-11 13:05:07 +02: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
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
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
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
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