Commit Graph

94 Commits

Author SHA1 Message Date
robotmrv
0e3ea3397d try to fix flaky test (#718)
fixes gh-716
2020-03-25 14:36:45 -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
e946ef1e79 Adds boot 2.3 compatiblity 2020-03-18 16:48:02 -04:00
Olga Maciaszek-Sharma
c30b424e5d Minor refactoring to adjust to team conventions. 2020-03-17 18:42:20 +01:00
Spencer Gibb
289d1dbae5 Increase timeout for CI tests 2020-03-10 15:31:01 -04:00
buildmaster
86d9fc762f Bumping versions to 2.2.3.BUILD-SNAPSHOT after release 2020-03-04 15:28:35 +00:00
buildmaster
f18c131bb8 Going back to snapshots 2020-03-04 15:28:35 +00:00
buildmaster
562088c03d Update SNAPSHOT to 2.2.2.RELEASE 2020-03-04 15:21:54 +00:00
Spencer Gibb
5ea26e13a3 formatting 2020-03-03 17:52:52 -05:00
robotmrv
6db6a81d82 Fixes issues in HealthCheckServiceInstanceListSupplier (#685)
- WebClient response leaks
- potential Scheduled task leak
- rework polling to plain reactor operators
- remove non atomic operations on ServiceInstance lists

related to gh-629
fixes issues from gh-683
2020-03-03 15:12:07 -05:00
Olga Maciaszek-Sharma
22efb79776 Fix warning wording. 2020-02-04 16:32:30 +01:00
Olga Maciaszek-Sharma
47a810606d Fix gh 629 new (#683)
* Swaps deprecated ConditionalOnEnabledEndpoint for updated annotation.

Swaps with ConditionalOnAvailableEndpoint

* Migrates to new OutputCaptureRule

* Migrates to new OutputCaptureRule

* Add health check loadBalancing implementation.

* Make isAlive() method protected.

Co-authored-by: Spencer Gibb <spencer@gibb.tech>
2020-02-04 10:14:08 +01:00
Olga Maciaszek-Sharma
07977b4ad5 Make LoadBalancerClientFactory bean conditional on missing bean. (#679) 2020-01-28 16:12:52 +01:00
Spencer Gibb
a6354ea405 formatting 2020-01-27 17:06:27 -05:00
Ryan Baxter
f043e0dd4e Making capacity getter and setter public. Fixes #676 2020-01-27 10:10:53 -05:00
Spencer Gibb
97020405d9 Adds FixedServiceInstanceListSupplier 2020-01-21 23:15:29 -05:00
Olga Maciaszek-Sharma
ec784b757e Add hints to API via the Request interface. Fixes gh-647. (#669)
* Add hints to API via the Request interface. Fixes gh-647.

* Switch to generic context.
2020-01-17 14:26:33 -05:00
buildmaster
2e40fcec41 Bumping versions to 2.2.2.BUILD-SNAPSHOT after release 2019-12-20 11:59:03 +00:00
buildmaster
980ce49895 Going back to snapshots 2019-12-20 11:59:03 +00:00
buildmaster
f533ef1553 Update SNAPSHOT to 2.2.1.RELEASE 2019-12-20 11:53:32 +00:00
Olga Maciaszek-Sharma
8c054083cc Use configuration properties instead of environment. (#662)
* Use configuration properties instead of environment.

* Fix after review.
2019-12-19 17:27:40 +01:00
buildmaster
f25bbad456 Bumping versions 2019-12-18 16:05:04 +00:00
Olga Maciaszek-Sharma
75338cde79 Zoned ServiceInstanceListSupplier (#658)
* Get ServiceInstance zone from metadata.

* Add ZonePreferenceServiceInstanceListSupplier.

* Add javadocs and license entries.

* Add tests.

* Add documentation.

* Documentation fix.

* Fix after code review.
2019-12-18 15:25:51 +01:00
Olga Maciaszek-Sharma
de9e259b1e Make LoadBalancer cache conditional on no Ribbon default. (#650) 2019-12-11 15:55:41 +01:00
buildmaster
8ab3c2723a Bumping versions to 2.2.1.BUILD-SNAPSHOT after release 2019-11-26 09:34:55 +00:00
buildmaster
a70b9f30bd Going back to snapshots 2019-11-26 09:34:54 +00:00
buildmaster
a20cde9672 Update SNAPSHOT to 2.2.0.RELEASE 2019-11-26 09:28:58 +00:00
Olga Maciaszek-Sharma
da0e06eb7a Add evictor based loadbalancer caching (#644)
* Add Evictor dependency. Implement EvictorCache.

* Add EvictorBasedLoadBalancerCacheManager. Add evictor to starter.

* Set caffeine InitialCapacity from properties.

* Add tests. Add javadocs. Fix creating multiple cache instances.

* Reformat. Change property name. Add documentation.

* Add more tests.

* Move evictor version to parent. Add more tests.

* Ignore .flattened-pom.xml.

* Encapsulate Evictor and switch to non-evictor specific class naming.

* Adjust the docs.

* Fix after code review.
2019-11-25 20:34:19 +01:00
buildmaster
05d936803f Bumping versions 2019-11-22 16:05:59 +00:00
Olga Maciaszek-Sharma
1ddeca4a8e Switch to Spring Boot String to Duration conversion. 2019-11-22 16:49:28 +01:00
Olga Maciaszek-Sharma
bf6b31ee8a caffeine cache for loadbalancer Fix gh 638 (#643)
* Add Caffeine-based loadBalancerCacheManager.

* Add more tests.

* Fix test.

* Only enable loadBalancer caching if caffeine is on classpath. Warn if
caffeine is not on classpath.

* Add javadocs.

* Add docs. Change property name.

* Fix configuration.

* Fix after code review. Add another constructor to CaffeineBasedLoadBalancerCacheManager,
allowing to pass cache name, in order to support alternative ServiceInstanceListSupplierImplementations.
2019-11-22 15:53:57 +01:00
Ryan Baxter
18a4227c4e Added proxyBeanMethods = false to configuration classes. Fixes #623 2019-11-14 20:04:28 -05:00
buildmaster
80a9a38712 Going back to snapshots 2019-11-08 19:57:32 +00:00
buildmaster
9ec71f275e Update SNAPSHOT to 2.2.0.RC2 2019-11-08 19:56:19 +00:00
buildmaster
efcb959e8c Bumping versions 2019-11-07 13:47:04 +00:00
Olga Maciaszek-Sharma
6356d92727 Remove unnecessary debug code. 2019-11-05 22:06:20 +01:00
Olga Maciaszek-Sharma
b1b0ec86a6 Fix gh 619 pass customisers in bean post processors (#627)
* Switch to passing customisers in BeanPostProcessor instead of the
SmartInitializingSingleton.

* Do not instantiate ReactorLoadBalancerExchangeFilterFunction while registering
LB BeanPostProcessor.

* Do not instantiate ReactorLoadBalancerExchangeFilterFunction while registering
LB BeanPostProcessor.

* Extract BeanPostProcessor instantiation to a separate configuration.

* Fix tests.

* Switch to using generics for DeferringLoadBalancerExchangeFilterFunction
and reusing BPP configuration for Ribbon. Add more test assertions.

* Add javadocs.

* Add test verifying LB filters added when WebClient built in constructor.
2019-11-05 15:22:09 +01:00
Olga Maciaszek-Sharma
c437379857 Merge branch '2.1.x'
# Conflicts:
#	spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/config/BlockingLoadBalancerClientAutoConfiguration.java
2019-10-29 17:48:21 +01:00
Olga Maciaszek-Sharma
b3c4698f99 Make RibbonWarnLogger conditional on loadbalancer.ribbon.enabled=true.
Fixes gh-628
2019-10-29 17:43:06 +01:00
buildmaster
8e2374140a Going back to snapshots 2019-10-24 20:20:04 +00:00
buildmaster
338649716f Update SNAPSHOT to 2.2.0.RC1 2019-10-24 20:18:53 +00:00
Tim Ysewyn
7033a9877f Take first non-empty flux into consideration for composite reactive service discovery 2019-10-23 20:34:15 +02:00
Spencer Gibb
3fe7725fca Removes Objects.requireNonNull() 2019-10-23 14:03:46 -04:00
buildmaster
dd08f97b93 Going back to snapshots 2019-10-03 18:56:14 +00:00
buildmaster
191a2724a4 Update SNAPSHOT to 2.2.0.M3 2019-10-03 18:55:07 +00:00
Tim Ysewyn
c0113c5235 Support reactive discovery client for load balancing 2019-10-03 16:34:58 +02:00
Olga Maciaszek-Sharma
87fa3c7897 Use Ribbon by default. (#609)
* Use Ribbon by default.

* Fix after review.

* Reformat.
2019-09-23 13:51:32 +02:00
Olga Maciaszek-Sharma
da0ce3c4c8 Gh 595 add serviceinstancelistsupplier (#607)
* Add ServiceInstanceListSupplier and its implementations.
Deprecate ServiceInstanceSupplier and its implementations.
Fixes gh-595.

* Switch to non-parameterised type.

* Switch autoConfiguration and tests to new implementation.

* Update docs and javadocs. Remove deprecated TODOs.

* Fix after code review.
2019-09-18 17:56:52 +02:00
Spencer Gibb
d2396bb21a Moves @ConditionalOnClass(RestTemplate.class) to inner class.
Creates test to make sure this works
2019-09-13 14:07:35 -04:00