Closed narramadan closed 3 years ago
please provide the stack trace
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
Hi All,
This issue is more inline with https://github.com/spring-cloud/spring-cloud-consul/issues/714. Accessing
/actuator/refresh
was causing error in Config Client withDiscovery First Approach
.https://github.com/spring-cloud/spring-cloud-consul/issues/714 is fixed with spring-cloud-dependencies v2020.0.2. I bumped the version in my project to
v2020.0.2
and I can see/actuator/refresh
is working as expected.But this broke resolving IP address of the service that is registered in consul, which was working with spring-cloud-dependencies v2020.0.1.
With no changes to the code, toggling
spring-cloud-dependencies
in pom.xml to/actuator/refresh
failing/actuator/refresh
issue but will fail resolving service IP address.Sample As this involves multiple components to reproduce, please clone the below repo and execute the steps in sequence
Code is available in git repo - https://github.com/2much2learn/article_2021_jan_spring-cloud-config-configfirst_discoveryfirst
Run the below series of commands to replicate the issue
Accessing http://127.0.0.1:8500/ui/dc1/services should list
config-server
,service-a
&service-b
registered with consul.Refresh service to reload configs. This should work with https://github.com/spring-cloud/spring-cloud-consul/issues/714
Access service endpoint - Fails with UnknownHostException as service IP address is not resolved
Changing
<spring-cloud.version>2020.0.2</spring-cloud.version>
to<spring-cloud.version>2020.0.1</spring-cloud.version>
inpom.xml
and repeating the steps above should make/actuator/refresh
fail but/greeting
work by resolving service IP address.Can you please let me know if this is a valid issue or should something be changed at my end with
v2020.0.2
?Thanks, Madan N
cc: @spencergibb @pcoates33 @royremi