Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seata1.3 事物回滚了一半 #4006

Closed
1 task
xieshenace opened this issue Sep 7, 2021 · 5 comments · May be fixed by #6070
Closed
1 task

seata1.3 事物回滚了一半 #4006

xieshenace opened this issue Sep 7, 2021 · 5 comments · May be fixed by #6070

Comments

@xieshenace
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. Issue Description

在主方法上加了@GlobalTransactional,然后有个更新时间,随后,调了另外一个service层的方法,该sevice层openFeign了另外一个服务的接口,该接口抛出了异常,被该service层,捕获到,然后抛出了异常,servcie层的更新都回滚了,但是主方法的updade却没有回滚

Ⅱ. Describe what happened

If there is an exception, please attach the exception trace:
image

Ⅲ. Describe what you expected to happen

Ⅳ. How to reproduce it (as minimally and precisely as possible)

  1. xxx
  2. xxx
  3. xxx

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • JDK version : 1.8
  • OS :
  • Others: seata1.3
@funky-eyes
Copy link
Contributor

image

@xieshenace
Copy link
Author

因为tinyint,的问题,转换成boolean值了,然后回滚就只有0,1,没有-1了

@huan415
Copy link
Contributor

huan415 commented Sep 7, 2021

因为tinyint,的问题,转换成boolean值了,然后回滚就只有0,1,没有-1了

数据库url后面加上&tinyInt1isBit=false
或者tinyint(2)

@xieshenace
Copy link
Author

因为tinyint,的问题,转换成boolean值了,然后回滚就只有0,1,没有-1了

数据库url后面加上&tinyInt1isBit=false
或者tinyint(2)

好的好的,谢谢

@wangliang181230
Copy link
Contributor

@xieshenace @huan415 现在已通过代码修复该BUG,PR:#6068

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants