[ 
https://issues.apache.org/jira/browse/SCB-300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16438268#comment-16438268
 ] 

ASF GitHub Bot commented on SCB-300:
------------------------------------

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:
us...@infra.apache.org


> [pack] acceptance tests of transaction timeout and retry
> --------------------------------------------------------
>
>                 Key: SCB-300
>                 URL: https://issues.apache.org/jira/browse/SCB-300
>             Project: Apache ServiceComb
>          Issue Type: Sub-task
>          Components: Saga
>            Reporter: Yin Xiang
>            Assignee: Zheng Feng
>            Priority: Major
>             Fix For: saga-0.2.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to