QNJR-GROUP / EasyTransaction

A distribute transaction solution(分布式事务) unified the usage of TCC , SAGA ,FMT (seata/fescar AutoCompensation), reliable message, compensate and so on;
Apache License 2.0
2.36k stars 809 forks source link

解决异步消息在interfacecall方式下无法正常解析返回结果的问题 #140

Closed wengdiquan closed 4 years ago

wengdiquan commented 4 years ago

用非侵入式写法实现异步事务遇到的问题

  1. 当业务实现类返回值为EasyTransConsumeAction时,无论为CommitMessage或ReconsumeLater都会被et解析为CommitMessage: image
  2. 若选择不返回EasyTransConsumeAction作为返回值,选择抛出异常,能够起到ReconsumeLater的效果,但是et框架会出现npe异常: image image
skyesx commented 4 years ago

感谢贡献的代码