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 .
B服务报错信息:
org.apache.servicecomb.pack.omega.transaction.OmegaException: Cannot find the globalTxId from OmegaContext. Please using @SagaStart to start a global transaction.
确认下是否使用有误?
chassis:2.1.5 pack:0.6.0
依赖包:
A 服务代码 private static RestTemplate restTemplate = RestTemplateBuilder.create();
B 服务代码
@Compensable(compensationMethod="cancel") @Transactional public int insert(TUser user) {
B服务报错信息: org.apache.servicecomb.pack.omega.transaction.OmegaException: Cannot find the globalTxId from OmegaContext. Please using @SagaStart to start a global transaction.
在A服务TransactionClientHttpRequestInterceptor.intercept打断点都没进。