stashslash opened a new issue #346: compensation method invoke before compensable method URL: https://github.com/apache/servicecomb-saga/issues/346 i test the `saga-spring-demo` if i modify the `HotelBookingService` add some sleep code, like: ``` @Compensable(compensationMethod = "cancel", timeout = 5) void order(HotelBooking booking) { if (booking.getAmount() > 2) { throw new IllegalArgumentException("can not order the rooms large than two"); } booking.confirm(); // sleep 10 sec, simulate slow db try { Thread.sleep(10 * 1000); } catch (InterruptedException e) { e.printStackTrace(); } bookings.put(booking.getId(), booking); } ``` then, i call the booking rest api, and got the booking result from hotel service and car service, the result looks like: - hotel service: `[{"name":"test","amount":2,"confirmed":true,"cancelled":false}]` - car service: `[{"name":"test","amount":2,"confirmed":false,"cancelled":true}]` it's looks like car service compensated success, but hotel service compensated failure. so, did i missing anything?
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
