You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/04/24 14:35:20 UTC

[GitHub] [servicecomb-pack] szattila98 opened a new issue #718: Servicecomb with eureka

szattila98 opened a new issue #718:
URL: https://github.com/apache/servicecomb-pack/issues/718


   Hello, I am trying to make the Saga part of Servicecomb work with Spring Cloud Netflix Eureka. Sadly nothing happens when I send a request which should start the Saga and set the transaction in motion. The Alpha database tables are empty too and the compensation method (which should be running because in the @SagaStart annotated method there is a RuntimeException thrown) does not run.
   What I did:
   - Alpha successfully registers to Eureka, so up until then there should not be a mistake on my part
   - Then the Omega dependency and Feign transport dependency is added to two services, and the `alpha.cluster.register.type: eureka` property is set in their props files
   - Then a serviceA method is annotated with @SagaStart and @Transactional, it calls a ServiceB method through a Feign client interface
   - ServiceB method is annotated with @Compensable, @Transactional and it has a compensation method with the same arguments and return type
   What am I missing?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [servicecomb-pack] szattila98 edited a comment on issue #718: Servicecomb with eureka

Posted by GitBox <gi...@apache.org>.
szattila98 edited a comment on issue #718:
URL: https://github.com/apache/servicecomb-pack/issues/718#issuecomment-826324551


   Sure, here they are. I included a reamde in the re-producer project with some details, maybe it will help.
   The logs are about the relevant services, the feedback-service should start the saga, and the user-service should compensate when there is a RuntimeException.
   
   [reproducer-project.zip](https://github.com/apache/servicecomb-pack/files/6372005/reproducer-project.zip)
   [debug-logs.zip](https://github.com/apache/servicecomb-pack/files/6372006/debug-logs.zip)
   
   Thanks for the fast response!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [servicecomb-pack] zhfeng commented on issue #718: Servicecomb with eureka

Posted by GitBox <gi...@apache.org>.
zhfeng commented on issue #718:
URL: https://github.com/apache/servicecomb-pack/issues/718#issuecomment-827675329


   Great and I will take a look.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [servicecomb-pack] zhfeng commented on issue #718: Servicecomb with eureka

Posted by GitBox <gi...@apache.org>.
zhfeng commented on issue #718:
URL: https://github.com/apache/servicecomb-pack/issues/718#issuecomment-826109213


   Could you share some debug logging messages ? and I think it could be helpful for us to take a close look. Also it could be useful if you can share us with a simple re-producer project.
   
   Thanks !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [servicecomb-pack] zhfeng commented on issue #718: Servicecomb with eureka

Posted by GitBox <gi...@apache.org>.
zhfeng commented on issue #718:
URL: https://github.com/apache/servicecomb-pack/issues/718#issuecomment-826109213


   Could you share some debug logging messages ? and I think it could be helpful for us to take a close look. Also it could be useful if you can share us with a simple re-producer project.
   
   Thanks !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [servicecomb-pack] szattila98 edited a comment on issue #718: Servicecomb with eureka

Posted by GitBox <gi...@apache.org>.
szattila98 edited a comment on issue #718:
URL: https://github.com/apache/servicecomb-pack/issues/718#issuecomment-826324551


   Sure, here they are. I included a readme in the re-producer project with some details, maybe it will help.
   The logs are about the relevant services, the feedback-service should start the saga and call the user-service, which saves a record, then return to the feedback-service, where a RuntimeException is thrown, and in the user-service the compensation method should be called because of that. The re-producer project follows more or less the same logic.
   
   [reproducer-project.zip](https://github.com/apache/servicecomb-pack/files/6372005/reproducer-project.zip)
   [debug-logs.zip](https://github.com/apache/servicecomb-pack/files/6372006/debug-logs.zip)
   
   Thanks for the fast response!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [servicecomb-pack] szattila98 edited a comment on issue #718: Servicecomb with eureka

Posted by GitBox <gi...@apache.org>.
szattila98 edited a comment on issue #718:
URL: https://github.com/apache/servicecomb-pack/issues/718#issuecomment-826324551


   Sure, here they are. I included a reamde in the re-producer project with some details, maybe it will help.
   The logs are about the relevant services, the feedback-service should start the saga and call the user-service, which saves a record, the return to the feedback-service, where a RuntimeException is thrown, and in the user-service the compensation method should be called because of that. The re-producer project follows more or less the same logic.
   
   [reproducer-project.zip](https://github.com/apache/servicecomb-pack/files/6372005/reproducer-project.zip)
   [debug-logs.zip](https://github.com/apache/servicecomb-pack/files/6372006/debug-logs.zip)
   
   Thanks for the fast response!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [servicecomb-pack] szattila98 edited a comment on issue #718: Servicecomb with eureka

Posted by GitBox <gi...@apache.org>.
szattila98 edited a comment on issue #718:
URL: https://github.com/apache/servicecomb-pack/issues/718#issuecomment-826324551


   Sure, here they are. I included a reamde in the re-producer project with some details, maybe it will help.
   The logs are about the relevant services, the feedback-service should start the saga and call the user-service, which saves a record, the return to the feedback-service, where a RuntimeException is thrown, and in the user-service the compensation method should be called because of that. The reproducer project follows more or less the same logic.
   
   [reproducer-project.zip](https://github.com/apache/servicecomb-pack/files/6372005/reproducer-project.zip)
   [debug-logs.zip](https://github.com/apache/servicecomb-pack/files/6372006/debug-logs.zip)
   
   Thanks for the fast response!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [servicecomb-pack] szattila98 commented on issue #718: Servicecomb with eureka

Posted by GitBox <gi...@apache.org>.
szattila98 commented on issue #718:
URL: https://github.com/apache/servicecomb-pack/issues/718#issuecomment-840630665


   Hello again, did you have the chance to take a look at it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [servicecomb-pack] szattila98 edited a comment on issue #718: Servicecomb with eureka

Posted by GitBox <gi...@apache.org>.
szattila98 edited a comment on issue #718:
URL: https://github.com/apache/servicecomb-pack/issues/718#issuecomment-826324551


   Sure, here they are. I included a readme in the re-producer project with some details, maybe it will help.
   The logs are about the relevant services, the feedback-service should start the saga and call the user-service, which saves a record, the return to the feedback-service, where a RuntimeException is thrown, and in the user-service the compensation method should be called because of that. The re-producer project follows more or less the same logic.
   
   [reproducer-project.zip](https://github.com/apache/servicecomb-pack/files/6372005/reproducer-project.zip)
   [debug-logs.zip](https://github.com/apache/servicecomb-pack/files/6372006/debug-logs.zip)
   
   Thanks for the fast response!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [servicecomb-pack] szattila98 edited a comment on issue #718: Servicecomb with eureka

Posted by GitBox <gi...@apache.org>.
szattila98 edited a comment on issue #718:
URL: https://github.com/apache/servicecomb-pack/issues/718#issuecomment-826324551






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [servicecomb-pack] szattila98 commented on issue #718: Servicecomb with eureka

Posted by GitBox <gi...@apache.org>.
szattila98 commented on issue #718:
URL: https://github.com/apache/servicecomb-pack/issues/718#issuecomment-826324551


   Sure, here they are. I included a reamde in the re-producer project with some details, maybe it will help.
   The logs are about the relevant services, the feedback-service should start the saga, and the user-service should compensate when there is a RuntimeException.
   
   [reproducer-project.zip](https://github.com/apache/servicecomb-pack/files/6372005/reproducer-project.zip)
   [debug-logs.zip](https://github.com/apache/servicecomb-pack/files/6372006/debug-logs.zip)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [servicecomb-pack] szattila98 commented on issue #718: Servicecomb with eureka

Posted by GitBox <gi...@apache.org>.
szattila98 commented on issue #718:
URL: https://github.com/apache/servicecomb-pack/issues/718#issuecomment-826324551


   Sure, here they are. I included a reamde in the re-producer project with some details, maybe it will help.
   The logs are about the relevant services, the feedback-service should start the saga, and the user-service should compensate when there is a RuntimeException.
   
   [reproducer-project.zip](https://github.com/apache/servicecomb-pack/files/6372005/reproducer-project.zip)
   [debug-logs.zip](https://github.com/apache/servicecomb-pack/files/6372006/debug-logs.zip)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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