Git Product home page Git Product logo

Comments (4)

lijianandwujie avatar lijianandwujie commented on May 22, 2024 3

我今天也测试了你这种情况A-B-C,发现C成为了发起者而不是参与者,是因为在远程调用时事务组的id没有传递到C,导致C成为了发起者,没有传递的原因经过查看代码觉得是RestTemplateInterceptor在设置header时和执行远程调用不在同一个线程导致的。经过测试,在参与者handler中执行proceed方法之前将txGroupId设置到TxTransactionLocal中就可以解决了,希望作者能够确认是不是这个问题

from raincat.

ansonli2017 avatar ansonli2017 commented on May 22, 2024

@lijianandwujie 请问具体怎么修改,能粘贴上具体修改的代码或步骤吗?

from raincat.

kissMeet avatar kissMeet commented on May 22, 2024

我认为目前的框架不支持a-b-c的事务,仅支持a-b a-c的事务。若需要改造成支持a-b-c事务,我的简单想法是在事务参与者ActorTxTransactionHandler中将txGroupId放到TxTransactionLocal里,完成txGroupId由b到c的传递。

from raincat.

yu199195 avatar yu199195 commented on May 22, 2024

嵌套调用关键在与事务组id的传递问题

from raincat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.