You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "funky-eyes (via GitHub)" <gi...@apache.org> on 2024/07/28 14:52:04 UTC
Re: [I] 手动回滚之后还会去触发commitTransaction方法? [incubator-seata]
funky-eyes commented on issue #6607:
URL: https://github.com/apache/incubator-seata/issues/6607#issuecomment-2254545723
> > 我想了解下,为什么有注解的方式,还依然要用api加以配合呢? I would like to understand, why do we still use APIs in conjunction with annotations?
>
> 你好,我用的是2.0.0版本 我想的是如果后续的代码还需要执行的话,就使用了手动回滚,但是在手动回滚之后,注解所触发的事务进程并没有被终止,导致最后return的时候还会去提交,触发了`Global transaction[%s] not found, may be rollbacked.`,所以感觉很奇怪 
社区目前的考虑是,api就专注于使用api方式管理事务,而注解方式就代表你的事务将被框架托管,理论上不应该再使用api去介入.所以我们需要一个比较明确的理由,让我们认定这是一个bug或者需求
The current consideration of the community is that the API focuses on using the API to manage transactions, and the annotation method means that your transactions will be hosted by the framework, and theoretically you should no longer use the API to intervene. So we need a clear reason to determine that this is a bug or a requirement
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org