Commit Graph

1179 Commits

Author SHA1 Message Date
buildmaster
d74cd35533 Update SNAPSHOT to 2.2.7.RELEASE 2021-02-11 13:09:01 +00:00
Olga Maciaszek-Sharma
5bfd4610de Backport retryable lb exchange filter function (#902) 2021-02-11 12:11:52 +01:00
spencergibb
28932e58e9 Fix false positives in SpringBootVersionVerifier
If user was using boot 2.4 with Hoxton, the manifest check would return false, then try the reflection based predicates which would match 2.3 since the 2.3 predicate still holds true in 2.4

Fixes gh-895
2021-02-01 12:30:16 -05:00
spencergibb
eaa2ddaa86 Formatting 2021-01-26 12:01:13 -05:00
spencergibb
00d6a364b2 Moves CloudFlux to spring cloud package.
FluxFirstNonEmptyEmitting and Tests used package private classes/interfaces from reactor. These were replaced with the public interfaces they were extending and any default methods copied to the implementation.

LambdaSubscriber was copied to the test where it was used and had similar treatment for its package protected interfaces.

Fixes gh-887
2021-01-26 11:56:39 -05: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
Dave Syer
7287a3c767 Re-implement /pause endpoint
A new interface PauseHandler provides a callback for /pause and
/resume. The only implementation provided out of the box is for
Spring Integration's Pausable (so it will work with Spring Cloud
Stream Kafka for instance).

Fixes gh-788
2020-12-01 09:47:59 +00:00
spencergibb
18109085aa formatting 2020-11-16 16:35:52 -05:00
spencergibb
17a82c21aa Move properties to parameter.
Fixes gh-850
2020-11-16 16:34:31 -05: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
Olga Maciaszek-Sharma
ba8fd08adf Adjust after PR merge. Minor refactoring. 2020-10-12 14:20:51 +02: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
653222d561 Override equals(), hashCode() and toString() in DefaultRequest and DefaultRequestContext. 2020-10-02 13:38:54 +02:00
Olga Maciaszek-Sharma
8748ef400f Add more logs. 2020-10-01 14:38:39 +02:00
Mushtaq Ahmed
d95a4d8c44 Updating Evictor Project link 2020-09-28 18:37:49 +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
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