我们升级以下以下内容:
Artifactid | -old版本 | 毕业版本 | |
---|---|---|---|
Spring-boot | 3.3.7 | 3.4.1 | |
2023.0.1 | 2024.0.0 |
groupid
resilience4j:
circuitbreaker:
configs:
shared:
sliding-window-type: count_based
sliding-window-size: 10
minimum-number-of-calls: 10
failure-rate-threshold: 90
slow-call-rate-threshold: 90
slow-call-duration-threshold: 50ms
wait-duration-in-open-state: 1s
permitted-number-of-calls-in-half-open-state: 5
max-wait-duration-in-half-open-state: 0s
writable-stack-trace-enabled: true
automatic-transition-from-open-to-half-open-enabled: true
register-health-indicator: true
instances:
XXXXXService:
base-config: shared
春季启动和云依赖性升级后,我们看到与断路器有关的测试用例正在破坏,因为断路器在升级后没有预期的表现。 与断路器的弹性4J相关的配置不变。 |
我们试图升级到3.2.0,这无济于事。 尝试寻找兼容性矩阵信息,我们在任何地方找不到。 启用的调试日志
spring-cloud-starter-circuitbreaker-resilience4j
我也在我们迁移到春季靴子3.4.2的迁移方面得到了这个问题。
我尝试了,没有机会。 我发现缺少依赖性:
org.springframework.cloud.circuitbreaker.resilience4j: debug
我从Https://stackoverflow.com/a/61930362.
spring-cloud-starter-circuitbreaker-resilience4j
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
<version>${spring-boot.version}</version>
</dependency>
。在这里,取消了这种依赖性的承诺是: https://github.com/spring-cloud/spring-cloud-openfeign/commit/6084609DE0705F24BA418704769E545A0D820D820D70D
我不知道为什么要删除它以及从那里需要什么,但是将其添加回来使我的电气断路器再次工作。