Open kvmw opened 1 year ago
Hello
I confirm this is a big issue when using spring-cloud-eureka-server, breaking the replication between 2 server instances (after one instance disappear and try to come back) more information there: https://github.com/spring-cloud/spring-cloud-netflix/issues/4220 It contains an example on how to reproduce.
It's a simple fix I can do but I'm not able to find the source code for eureka-client-jersey3 ? Any clue please ?
pom.xml from eureak-client-jersey3 is referencing this repository. I'm unable to find any repository or source code in github for AbstractJersey3EurekaHttpClient.java
Thx Christophe
Hey Does someone can help me by explaining me where is eureka-client-jersey3 sources ? Then I'll be able to propose PR.
PR is available here: https://github.com/Netflix/eureka/pull/1540
Tested successfully with example provided at: https://github.com/spring-cloud/spring-cloud-netflix/issues/4220#issuecomment-1900788126
Spring Boot 3.x includes a payload to error responses, by default. exmple:
On the other hand
JerseyEurekaHttpClient::sendHeartBeat
method tries to read and deserialise the response payload toInstanceInfo
, if it is not empty.Failure in deserialising the above error payload results in 400 (bad request) error and the client does not continue with the registration (which supposed to happened after receiving 404).
A similar issue in Spring Cloud Netflix has been fixed by updating RestTemplateTransportClientFactory and WebClientTransportClientFactory.
I believe a simple solution needs to be implemented for JerseyEurekaHttpClient.
Here is a sample stacktrace :