alibaba / spring-cloud-alibaba

Spring Cloud Alibaba provides a one-stop solution for application development for the distributed solutions of Alibaba middleware.
https://sca.aliyun.com
Apache License 2.0
27.94k stars 8.33k forks source link

How to disable Hystrix while using Sentinel #2062

Closed hooverhe closed 2 days ago

hooverhe commented 3 years ago

More than one implementation of @EnableCircuitBreaker (now relying on @conditionals to pick one): [com.alibaba.cloud.sentinel.custom.SentinelCircuitBreakerConfiguration, org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfiguration]

The version of spring boot and cloud:

<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.8.RELEASE</version>

<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Hoxton.SR10</version>

If I exclude those Hystrix dependencies, the application will throw exception. How to disable Hystrix while using Sentinel?

conditionals commented 3 years ago

i pick the first option

HaojunRen commented 3 years ago

I think you do not have the annotation with @EnableCircuitBreaker under Sentinel

github-actions[bot] commented 2 weeks ago

This issue has been open 30 days with no activity. This will be closed in 7 days.

github-actions[bot] commented 2 days ago

This issue has been automatically marked as stale because it hasn't had any recent activity.If you think this should still be open, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for your interest and contribution to the Sping Cloud Alibaba Community.