seanyinx commented on a change in pull request #117: SCB-224 support retry 
sub-transaction
URL: 
https://github.com/apache/incubator-servicecomb-saga/pull/117#discussion_r163730618
 
 

 ##########
 File path: 
omega/omega-transaction/src/main/java/org/apache/servicecomb/saga/omega/transaction/TransactionAspect.java
 ##########
 @@ -40,26 +40,29 @@
   private static final Logger LOG = 
LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
 
   private final OmegaContext context;
+  private final EventAwareInterceptor interceptor;
   private final ScheduledExecutorService executor = 
Executors.newSingleThreadScheduledExecutor();
-  private final CompensableInterceptor interceptor;
 
-  public TransactionAspect(MessageSender sender, OmegaContext context) {
+  public TransactionAspect(MessageSender messageSender, OmegaContext context) {
     this.context = context;
-    this.interceptor = new CompensableInterceptor(context, sender);
+    this.interceptor = new CompensableInterceptor(context,messageSender);
   }
 
   
@Around("execution(@org.apache.servicecomb.saga.omega.transaction.annotations.Compensable
 * *(..)) && @annotation(compensable)")
   Object advise(ProceedingJoinPoint joinPoint, Compensable compensable) throws 
Throwable {
     Method method = ((MethodSignature) joinPoint.getSignature()).getMethod();
     LOG.debug("Intercepting compensable method {} with context {}", 
method.toString(), context);
 
-    String signature = compensationMethodSignature(joinPoint, compensable, 
method);
+    Object[] args = joinPoint.getArgs();
 
 Review comment:
   retry probably needs to run synchronously instead of async. when alpha 
receives TxAbortedEvent, it needs to ask Omega to retry immediately. Or the 
transaction will fail on user service side.

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

Reply via email to