spring-cloud-gateway
spring-cloud-gateway copied to clipboard
Issue in circuit breaker with SpringBoot3
circuitbreaker is not working as expected in spring boot3
application.yml
spring:
application:
name: gateway-service
cloud:
gateway:
routes:
- id: customer-service
uri: http://localhost:8092
predicates:
- Path=/customer/**
filters:
- RewritePath=/customer/(?
logging.level.io.github.resilience4j: DEBUG logging.level.org.springframework.cloud.gateway.filter.factory: TRACE
Dependencies used:
with spring boot 2.7.10 and cloud 2021.0.6, the request was going to order-service (http://localhost:8090) if http://localhost:8092 is down.
but after upgrading to spring boot 3.0.5 and cloud 2022.0.2, the request is going into a infinite loop and not going to order-service if http://localhost:8092 is down.
I have the same issue
https://github.com/spring-cloud/spring-cloud-gateway/pull/2918 should fix this problem :arrow_right: either use version 4.0.5 directly or wait for the next spring-cloud-release.
HI, @Felixel42
I´m working with Spring Boot 3.1.6 and don´t working Circuit Breaker, ¿Do you know the versión Spring Boot is the correct?
Thanks.
@JO503688 see https://start.spring.io Spring Boot 3.2.3 and Spring Cloud 2023.0.0 or boot 3.1.9 and cloud 2022.0.5 both have the fix