Git Product home page Git Product logo

Comments (10)

xlorne avatar xlorne commented on August 14, 2024

https://github.com/codingapi/tx-lcn/blob/master/tx-client/src/main/java/com/codingapi/tx/control/LCNTransactionAspectSupport.java

from tx-lcn.

persistGithub avatar persistGithub commented on August 14, 2024

我现在有一个业务,需要在新建用户后进行其它的用户相关信息的保存,是两个不同的业务实体和spring boot
服务 ,后面的用户信息关联了保存的用户ID,使用的是JPA, 我看到tx的日志是在commit,但是会一直insert user
最后报错,,

from tx-lcn.

persistGithub avatar persistGithub commented on August 14, 2024

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction

from tx-lcn.

persistGithub avatar persistGithub commented on August 14, 2024

lcn transaction over, res -> groupId:jOlZWY7E and state is rollback

from tx-lcn.

xlorne avatar xlorne commented on August 14, 2024

是不是出现了两个模块操作同一行数据的情况了?

from tx-lcn.

xlorne avatar xlorne commented on August 14, 2024

LCNTransactionAspectSupport. currentTransactionStatus(). setRollbackOnly();

from tx-lcn.

xlorne avatar xlorne commented on August 14, 2024

事务手动回滚

from tx-lcn.

persistGithub avatar persistGithub commented on August 14, 2024

C是一个公共服务,A服务和B服务都引用了他 A服务新建一条数据,B服务中将这个条数据的ID设置为关联关系,在C服务中保存 就不行 会保存 而且是多次循环插入

from tx-lcn.

persistGithub avatar persistGithub commented on August 14, 2024

C服务不是web服务.没有配置数据源

from tx-lcn.

xlorne avatar xlorne commented on August 14, 2024

C 是操作数据源的服务?

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.