Closed HJK181 closed 7 months ago
Have some code to reproduce it ?
Hm, I have a pretty simple configuration file
spring:
cloud:
kubernetes:
client:
namespace: ui
discovery:
enabled: true
leader:
config-map-name: gateway-leader
role: active_user_gauge
gateway:
predicate:
weight:
enabled: false
httpclient:
connect-timeout: 2000
routes:
- id: svc-catch-all
uri: no://op
predicates:
- Path=/svc/**
filters:
- SetStatus=BAD_GATEWAY
- id: ws
uri: lb:ws://sse
predicates:
- Path=/ws/sse/**
filters:
- StripPrefix=2
- id: ui
uri: lb://management-ui
predicates:
- Path=/**
The only special thing might be that my gateway is on ouath2 client and has a custom DelegatingServiceInstanceListSupplier
but this should not be the cause of the exception, I guess...
If you can provide a complete, minimal, verifiable sample that is only gateway and no other dependencies (something that we can unzip attached to this issue or git clone, build, and deploy) that reproduces the problem, we can take a look.
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.
Describe the bug The gateway runs into a deadlock when started inside kubernetes. Thread dump:
Setting
spring.cloud.gateway.predicate.weight.enabled=false
works as a workaround. However, it should not be the default behavior for the gateway to fail with the default settings.Versions used: