spring-cloud / spring-cloud-kubernetes

Kubernetes integration with Spring Cloud Discovery Client, Configuration, etc...
Apache License 2.0
3.45k stars 1.03k forks source link

can not start spring-cloud-gateway with spring-cloud-starter-kubernetes-fabric8-all #890

Closed lj19950508 closed 1 year ago

lj19950508 commented 2 years ago

Env: Spring-cloud: 2020.0.3 spring-cloud-starter-gateway : 3.0.3 spring-cloud-starter-kubernetes-fabric8-all :2.0.3

when i run spring-cloud-gateway application ,

It's always starting and there is no error in the log , just warn image

lj19950508 commented 2 years ago

spring-cloud-start-openfeign 3.0.3

If I inject feignclient, the application cannot start and is always starting , and it has not error log

wind57 commented 2 years ago

can you provide a minimal, reproducible example here? Like a github repo we could import and see the issue you report? Thank you.

lj19950508 commented 2 years ago

spring: cloud: gateway: discovery: locator: enabled: true
it's problem, i can't run with it

lj19950508 commented 2 years ago

gitrepo demo : https://github.com/lj19950508/demofork8sissure

lj19950508 commented 2 years ago

this is the dump

"main" #1 prio=5 os_prio=0 cpu=4578.13ms elapsed=21.68s tid=0x00000282ef121800 nid=0x5194 waiting on condition [0x000000e8136fc000] java.lang.Thread.State: WAITING (parking) at jdk.internal.misc.Unsafe.park(java.base@11.0.12/Native Method)

stupid-yu commented 2 years ago

same problem with the following: Spring Cloud: 2021.0.1 spring-cloud-kubernetes: 2.1.0 spring-cloud-gateway: 2.1.0 spring-cloud-openfeign: 3.1.0

lj19950508 commented 2 years ago

same problem with the following: Spring Cloud: 2021.0.1 spring-cloud-kubernetes: 2.1.0 spring-cloud-gateway: 2.1.0 spring-cloud-openfeign: 3.1.0

Replace openfeign with webclient

stupid-yu commented 2 years ago

@lj19950508 thx

ryanjbaxter commented 1 year ago

Please retry with 2021.0.5 or 2022.0.0.

spring-cloud-issues commented 1 year ago

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.

spring-cloud-issues commented 1 year ago

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.