Git Product home page Git Product logo

Comments (5)

klboke avatar klboke commented on August 14, 2024

这样描述没法判断是什么问题,需要 debug 定位

from tx-lcn.

catman002 avatar catman002 commented on August 14, 2024

@klboke 没有bug输出,通过跟踪,是因为b没有发现a 的事务组:
public boolean hasGroup() {
return Objects.nonNull(fields) && fields.containsKey(TracingConstants.GROUP_ID) &&
StringUtils.hasText(fields.get(TracingConstants.GROUP_ID));
}
b服务在被调用后,拦截器执行在执行上面代码的时候,StringUtils.hasText(fields.get(TracingConstants.GROUP_ID))为空!!!! 导致txContext.isDtxStart被设置成true,而 b的事务传播是suppose,所以b没法加入a创建事务组,。。。。。。

但如果a-》b换成 resttemplate调用就不会出现这问题。

from tx-lcn.

klboke avatar klboke commented on August 14, 2024

那可以把排查的方向放到 openfeign 的事务id传递上

from tx-lcn.

catman002 avatar catman002 commented on August 14, 2024

那可以把排查的方向放到 openfeign 的事务id传递上

需要看哪个文件? 我顺着看看。。。😍

from tx-lcn.

catman002 avatar catman002 commented on August 14, 2024

问题找到了,由于我没有用 springcloud, 是单独用的 openfeign, 所以拦截器没生效,导致事务组id 没有传递。
调用时注入即可!!!

from tx-lcn.

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.