justdebugit created SCB-739:

             Summary: It is useless for @SagaStart timeout,and it could not be 
compensated under @SagaStart
                 Key: SCB-739
                 URL: https://issues.apache.org/jira/browse/SCB-739
             Project: Apache ServiceComb
          Issue Type: Bug
          Components: Saga
    Affects Versions: saga-0.3.0
         Environment: saga-spring-cloud-demo,Java8,Mac,Intellj Idea
            Reporter: justdebugit

I don't know what SagaStart annotation timeout use, because the timeout is not 
In the spring cloud demo,if hotel set a wrong address or port,the car service 
may not be compensated
 @SagaStart(timeout = 60000) //timeout no use,can not affect compensate 
  public String order(@PathVariable String name,  @PathVariable Integer rooms, 
@PathVariable Integer cars) {

        carServiceUrl + "/order/{name}/{cars}",
        null, String.class, name, cars);

   //if set a wrong hotel address,car service compensated method not be 
        hotelServiceUrl + "/order/{name}/{rooms}",
        null, String.class, name, rooms);

     return name + " booking " + rooms + " rooms and " + cars + " cars OK";

This message was sent by Atlassian JIRA

Reply via email to