apache / servicecomb-pack

Apache ServiceComb Pack is an eventually data consistency solution for micro-service applications. ServiceComb Pack currently provides TCC and Saga distributed transaction co-ordination solutions by using Alpha as a transaction coordinator and Omega as an transaction agent .
https://servicecomb.apache.org/
Apache License 2.0
1.93k stars 436 forks source link

Servicecomb with eureka #718

Open szattila98 opened 3 years ago

szattila98 commented 3 years ago

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. No logs indicate that anything happened at all. What I did:

What am I missing?

zhfeng commented 3 years ago

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 !

szattila98 commented 3 years ago

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 debug-logs.zip

Thanks for the fast response!

zhfeng commented 3 years ago

Great and I will take a look.

szattila98 commented 3 years ago

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