弹性启动和云依赖性升级后,Resilience4J断路器似乎无法正常工作。

问题描述 投票:0回答:1
我们在最近升级Spring Boot&Cloud依赖项后看到了Resilience4J断路器的问题。

我们升级以下以下内容:

groupidorg.springframework.bootorg.springframework.cloud spring-cloud依赖性 电流式弹性4J版本我们在应用程序中使用的是3.1.3版本。
Artifactid -old版本 毕业版本
Spring-boot 3.3.7 3.4.1
2023.0.1 2024.0.0

groupid
Artifactidversion使用org.springframework.cloud spring-cloud-starter-circuiter-resilience4j3.1.3我们的配置(用于执行集成测试的值)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相关的配置不变。
在升级之前,Resilience4J 2.1.0版捆绑在一起。现在,在升级后,它是Resilience4J版本2.2.0。是否有已知的问题,或者我们需要调整任何配置更改? 如果有人可以向此投入一些启示,这将非常有帮助。 预先感谢!

我们试图升级到3.2.0,这无济于事。 尝试寻找兼容性矩阵信息,我们在任何地方找不到。 启用的调试日志

spring-cloud-starter-circuitbreaker-resilience4j

也没有太多线索。 与断路器弹性相关的配置4J我们根据反复试验基础进行了调整,因为它没有帮助,因此使配置保持不变。
	

我也在我们迁移到春季靴子3.4.2的迁移方面得到了这个问题。

我尝试了,没有机会。 我发现缺少依赖性:

org.springframework.cloud.circuitbreaker.resilience4j: debug
我从
Https://stackoverflow.com/a/61930362

.
spring spring-cloud circuit-breaker resilience4j
1个回答
0
投票

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

我不知道为什么要删除它以及从那里需要什么,但是将其添加回来使我的电气断路器再次工作。


最新问题
© www.soinside.com 2019 - 2025. All rights reserved.