You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/02/18 01:29:33 UTC

[GitHub] kakulisen opened a new issue #1097: It seems that there is a conflict between handler-bizkeeper and spring cloud hystrix

kakulisen opened a new issue #1097: It seems that there is a conflict between handler-bizkeeper  and spring cloud hystrix  
URL: https://github.com/apache/servicecomb-java-chassis/issues/1097
 
 
   Hi, I have tried to use spring-cloud-hystrix in my web project with ServiceComb-java-chassis.
   When I use HystrixCommand like below, it does not work
   ```
       @HystrixCommand(
               fallbackMethod = "errorHandler",
               commandProperties = {
                       @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "1000")
               }
       )
   ```
   
   Here is my pom.xml
   ```xml
          <dependency>
               <groupId>org.springframework.boot</groupId>
               <artifactId>spring-boot-starter</artifactId>
           </dependency>
           <dependency>
               <groupId>org.springframework.cloud</groupId>
               <artifactId>spring-cloud-starter-hystrix</artifactId>
               <version>1.4.4.RELEASE</version>
           </dependency>
           <dependency>
               <groupId>org.apache.servicecomb</groupId>
               <artifactId>spring-boot-starter-provider</artifactId>
               <version>1.1.0</version>
           </dependency>
           <dependency>
               <groupId>org.apache.servicecomb</groupId>
               <artifactId>spring-boot-starter-discovery</artifactId>
               <version>1.1.0</version>
           </dependency>
   ```
   
   I found that spring-boot-starter-provider have a transitive dependencies handler-bizkeeper.
   I exclude it in my pom, then anything is right
   ```xml
           <dependency>
               <groupId>org.apache.servicecomb</groupId>
               <artifactId>spring-boot-starter-provider</artifactId>
               <version>1.1.0</version>
               <exclusions>
                   <exclusion>
                       <groupId>org.apache.servicecomb</groupId>
                       <artifactId>handler-bizkeeper</artifactId>
                   </exclusion>
               </exclusions>
           </dependency>
   ```
   
   It seems that there is a conflict between handler-bizkeeper  and spring-cloud-hystrix . Is there any other way to solve this problem?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services