Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-739

It is useless for @SagaStart timeout,and it could not be compensated under @SagaStart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • pack-0.3.0
    • Saga
    • None
    • saga-spring-cloud-demo,Java8,Mac,Intellj Idea

    Description

      I don't know what SagaStart annotation timeout use, because the timeout is not work.
      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 
        @PostMapping("/booking/{name}/{rooms}/{cars}")
        public String order(@PathVariable String name,  @PathVariable Integer rooms, @PathVariable Integer cars) {
      
          template.postForEntity(
              carServiceUrl + "/order/{name}/{cars}",
              null, String.class, name, cars);
      
         //if set a wrong hotel address,car service compensated method not be triggered
          template.postForEntity(
              hotelServiceUrl + "/order/{name}/{rooms}",
              null, String.class, name, rooms);
          
           postBooking();
      
           return name + " booking " + rooms + " rooms and " + cars + " cars OK";
      }
      

       

      Attachments

        Issue Links

          Activity

            People

              njiang Willem Jiang
              justdebugit justdebugit
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: