Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
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
- is duplicated by
-
SCB-784 SagaStart annotated method should abort the saga transaction once the exception is thrown
- Resolved