servicecomb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] WillemJiang closed pull request #172: SCB-300 update to modify the timeout value in the byteman rule
Date Sat, 14 Apr 2018 07:18:19 GMT
WillemJiang closed pull request #172: SCB-300 update to modify the timeout value in the byteman
rule
URL: https://github.com/apache/incubator-servicecomb-saga/pull/172
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/acceptance-tests/acceptance-pack/src/test/resources/booking_timeout.btm b/acceptance-tests/acceptance-pack/src/test/resources/booking_timeout.btm
index a41bf989..2deab518 100644
--- a/acceptance-tests/acceptance-pack/src/test/resources/booking_timeout.btm
+++ b/acceptance-tests/acceptance-pack/src/test/resources/booking_timeout.btm
@@ -18,6 +18,14 @@
 #
 ###############################################################
 
+RULE set the saga timeout to 5s
+INTERFACE org.apache.servicecomb.saga.omega.context.annotations.SagaStart
+METHOD timeout
+AT EXIT
+IF TRUE
+DO RETURN 5
+ENDRULE
+
 RULE sleep when postBooking until timeout happens
 CLASS org.apache.servicecomb.saga.demo.pack.booking.BookingController
 METHOD postBooking
diff --git a/saga-demo/booking/booking/src/main/java/org/apache/servicecomb/saga/demo/pack/booking/BookingController.java
b/saga-demo/booking/booking/src/main/java/org/apache/servicecomb/saga/demo/pack/booking/BookingController.java
index 3d6c2ce5..c1948117 100644
--- a/saga-demo/booking/booking/src/main/java/org/apache/servicecomb/saga/demo/pack/booking/BookingController.java
+++ b/saga-demo/booking/booking/src/main/java/org/apache/servicecomb/saga/demo/pack/booking/BookingController.java
@@ -37,7 +37,7 @@
   @Autowired
   private RestTemplate template;
 
-  @SagaStart(timeout = 5)
+  @SagaStart
   @PostMapping("/booking/{name}/{rooms}/{cars}")
   public String order(@PathVariable String name,  @PathVariable Integer rooms, @PathVariable
Integer cars) {
     template.postForEntity(


 

----------------------------------------------------------------
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

Mime
View raw message