Commit Graph

481 Commits

Author SHA1 Message Date
Olga Maciaszek-Sharma
07e29944a2 Add more hints. 2022-10-05 18:51:28 +02:00
Olga Maciaszek-Sharma
1b110c87ad Add first hints. 2022-10-05 15:00:02 +02:00
Ryan Baxter
8de4b27ee3 Migrate to new autoconfiguration (#2137) 2022-08-24 14:18:40 -04:00
buildmaster
905926fb88 Going back to snapshots 2022-07-29 19:35:34 +00:00
buildmaster
bf38e70ff6 Update SNAPSHOT to 4.0.0-M4 2022-07-29 19:32:53 +00:00
buildmaster
ec4c448c10 Going back to snapshots 2022-06-15 12:48:40 +00:00
buildmaster
da3ac1640a Update SNAPSHOT to 4.0.0-M3 2022-06-15 12:45:50 +00:00
buildmaster
27acb917ce Bumping versions 2022-05-11 02:50:42 +00:00
spencergibb
ed2f2cc20a log retry context 2022-05-09 13:39:26 -04:00
spencergibb
a49a9d13d7 Fixes config data log constructor.
Also, compatibility with framework 6/boot 3
2022-05-09 12:58:51 -04:00
spencergibb
a613db4e06 Merge branch '3.1.x' 2022-05-09 12:24:29 -04:00
spencergibb
70e558df7d Removes unused constructor 2022-05-09 12:22:41 -04:00
buildmaster
9d319c26ac Bumping versions to 3.1.3-SNAPSHOT after release 2022-04-27 10:43:51 +00:00
buildmaster
fd6ca6c668 Going back to snapshots 2022-04-27 10:43:51 +00:00
buildmaster
48be8bc3c5 Update SNAPSHOT to 3.1.2 2022-04-27 10:40:46 +00:00
Olga Maciaszek-Sharma
d9c8452fe7 Revert "Update SNAPSHOT to 3.1.2"
This reverts commit 6535ef2f58.
2022-04-27 11:06:13 +02:00
Olga Maciaszek-Sharma
287d0c80b5 Revert "Going back to snapshots"
This reverts commit 69b0747082.
2022-04-27 11:06:09 +02:00
Olga Maciaszek-Sharma
df7dea96a1 Revert "Bumping versions to 3.1.3-SNAPSHOT after release"
This reverts commit 3528115046.
2022-04-27 11:06:05 +02:00
Olga Maciaszek-Sharma
e663618080 Revert "Bumping versions"
This reverts commit 0cc9713fc3.
2022-04-27 11:06:02 +02:00
Ryan Baxter
60852ce476 Fixing tests 2022-04-26 20:54:44 -04:00
buildmaster
0cc9713fc3 Bumping versions 2022-04-27 00:29:44 +00:00
Ryan Baxter
dbb3dcaafb Removing the use of getRawStatusCode 2022-04-26 12:46:21 -04:00
buildmaster
3528115046 Bumping versions to 3.1.3-SNAPSHOT after release 2022-04-26 15:53:30 +00:00
buildmaster
69b0747082 Going back to snapshots 2022-04-26 15:53:30 +00:00
buildmaster
6535ef2f58 Update SNAPSHOT to 3.1.2 2022-04-26 15:50:33 +00:00
buildmaster
1cd03a05fb Going back to snapshots 2022-03-31 21:49:34 +00:00
buildmaster
213e35622a Update SNAPSHOT to 4.0.0-M2 2022-03-31 21:46:51 +00:00
Ryan Baxter
3e1322be36 Merge branch '3.1.x' 2022-03-22 09:29:22 -04:00
ruansheng
9cfa39377e Fix configServer logger (#2066) 2022-03-22 09:28:25 -04:00
marnee01
7f83b1f547 Add support for multiple-url-strategy configuration for clients. (#1946)
* Add support for multiple-url-strategy configuration for clients.

Add support for new property spring.cloud.config.multiple-uri-strategy.
The value must be one of: always, connection_timeout_only. The default
value is connection_timeout_only. This default setting maintains existing
behavior.

If a client has multiple URLs in the spring.cloud.config.uri property,
and if multiple-uri-strategy is set to "always", then if the client gets
any error from config server whatsoever or gets no response, the client
will try the next URL in the list.

The existing and default behavior is that the other URLs in the list will be
tried only if and when the client receives no response from config server.

This is mainly to allow for a client failing over to secondary URLs when
it receives a 404 due to config server being unable to reach its git server
(and config server does not have the requested configs in its local git cache).
With the default behavior, the client receives a 404 and never tries the
next URL in the list(which might point to a different git server that is
currently up). Another benefit is that it allows for a client failing over
to a secondary config server if the first one returns a 503 (OUT_OF_SERVICE).

Fixes gh-1845.

* Fix code style after committing change for gh-1845.

* Fix support for multiple-url-strategy configuration for clients.

Fix issue with the new multiple URI strategy behavior.
Even when strategy was ALWAYS, the client would not try
the next URL when it received server-side errors. Fixed
this by adding HttpServerErrorException to catch clause
in ConfigServicePropertySourceLocator.

Also, fix code style issues and add unit tests.
Fix existing fail-fast unit tests that were not correct.
(They were not mocking out raw status code method on
the response. The error thrown back was actually due to
RestTemplate.handleResponse being unable to to map raw
status code 0 to an HttpStatus.)

* Fix support for multiple-url-strategy configuration for clients.

Merge with dev and undo unintentional changes that were
done automatically. This is part of the pull request
fixing gh-1845.

* Fix support for multiple-url-strategy configuration for clients.

Update ConfigServerConfigDataLoader to try multiple URLs
even for server-side errors when strategy is ALWAYS. This was
missed in previous commit. This is part of the pull request
fixing gh-1845.

* Add ConfigServerConfigDataLoaderTests.

When ConfigServerConfigDataLoader was originally introduced
for the new Spring Boot 2.4 way to import configuration data
(https://github.com/spring-cloud/spring-cloud-config/pull/1656/files),
no unit test was added. I needed to add tests to cover changes
made for the new MultipleUriStrategy (gh-1845). I copied
tests from ConfigServicePropertySourceLocatorTests and modified
as needed for the new class. (There were 2-3 test cases from
ConfigServicePropertySourceLocatorTests that I did not
copy over because it wasn't clear to me expected behavior
or how to set up test case).

This is part of the pull request fixing gh-1845.

* Update the default for multiple-uri-strategy to ALWAYS.

(Per code review.) This is part of the pull request fixing
gh-1845.

* Update documentation for the new multiple-uri-strategy property.

Also, add documentation comparing behavior of multiple URLs
under spring.cloud.config.uri versus multiple URLs under
spring.config.import.

This is part of the pull request fixing gh-1845.

Co-authored-by: UPINCMA <marnee.derider@pearson.com>
2022-03-07 17:07:41 -05:00
buildmaster
de84be1011 Bumping versions 2022-02-24 02:37:29 +00:00
buildmaster
9e7fd9117a Bumping versions 2022-02-24 00:30:01 +00:00
Sergii Chekotylo
d0b9f0a6c8 Unable to provide different values of spring.config.import.configserver since 2020.0.4 #2011 (#2037) 2022-02-22 11:05:29 -05:00
Sergii Chekotylo
cee78ddd86 Unable to provide different values of spring.config.import.configserver since 2020.0.4 #2011 (#2037) 2022-02-22 11:04:32 -05:00
buildmaster
5e60c254d2 Bumping versions to 3.1.2-SNAPSHOT after release 2022-02-17 16:46:14 +00:00
buildmaster
3ecceb1276 Going back to snapshots 2022-02-17 16:46:14 +00:00
buildmaster
b40c219c57 Update SNAPSHOT to 3.1.1 2022-02-17 16:43:03 +00:00
Ryan Baxter
470375c246 Merge remote-tracking branch 'origin/3.1.x' into main 2022-01-31 14:51:50 -05:00
Mark Bonnekessel
b5ac671671 Add Option.PROFILE_SPECIFIC to profile specific PropertySources from Vault
Fixes gh-1997
2022-01-31 12:04:37 -05:00
buildmaster
a3b9fdfb7c Going back to snapshots 2022-01-27 21:43:57 +00:00
buildmaster
4505c189c3 Update SNAPSHOT to 4.0.0-M1 2022-01-27 21:41:23 +00:00
spencergibb
fda8368355 Updates to 4.0.0-SNAPSHOT
Updates for java 17, framework 6, boot 3 and javax->jakarta
2022-01-04 11:38:09 -05:00
buildmaster
a8f6955495 Bumping versions 2021-12-02 20:49:15 +00:00
buildmaster
119425734e Bumping versions 2021-12-01 20:49:43 +00:00
buildmaster
58a92079eb Bumping versions to 3.1.1-SNAPSHOT after release 2021-12-01 18:26:47 +00:00
buildmaster
c53e703a2d Going back to snapshots 2021-12-01 18:26:46 +00:00
buildmaster
8e927ed0f1 Update SNAPSHOT to 3.1.0 2021-12-01 18:22:48 +00:00
buildmaster
77fe396d66 Going back to snapshots 2021-11-03 11:21:13 +00:00
buildmaster
e28ddeb84e Update SNAPSHOT to 3.1.0-RC1 2021-11-03 11:19:23 +00:00
buildmaster
17d569605e Going back to snapshots 2021-10-20 02:08:10 +00:00