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

bugfix: fix mysql insert use select last insert id is undo_log id value #2659

Merged
merged 6 commits into from
May 7, 2020
Merged

bugfix: fix mysql insert use select last insert id is undo_log id value #2659

merged 6 commits into from
May 7, 2020

Conversation

jsbxyyx
Copy link
Member

@jsbxyyx jsbxyyx commented May 6, 2020

Ⅰ. Describe what this PR did

mysql business insert use select last insert id is undo_log id's value.

Ⅱ. Does this pull request fix one issue?

fixes: #2655

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@jsbxyyx jsbxyyx requested a review from zjinlei May 6, 2020 10:36
@codecov-io
Copy link

codecov-io commented May 6, 2020

Codecov Report

Merging #2659 into develop will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #2659      +/-   ##
=============================================
+ Coverage      51.01%   51.02%   +0.01%     
- Complexity      2812     2814       +2     
=============================================
  Files            557      557              
  Lines          17843    17843              
  Branches        2108     2108              
=============================================
+ Hits            9102     9104       +2     
  Misses          7875     7875              
+ Partials         866      864       -2     
Impacted Files Coverage Δ Complexity Δ
.../rm/datasource/undo/mysql/MySQLUndoLogManager.java 72.22% <ø> (ø) 6.00 <0.00> (ø)
...in/java/io/seata/server/session/GlobalSession.java 84.16% <0.00%> (+0.45%) 72.00% <0.00%> (+1.00%)
...o/seata/server/coordinator/DefaultCoordinator.java 55.15% <0.00%> (+0.51%) 29.00% <0.00%> (+1.00%)

@funky-eyes
Copy link
Contributor

is mysql the only one that need to handle ?

@zjinlei zjinlei added this to the 1.3.0 milestone May 6, 2020
@jsbxyyx
Copy link
Member Author

jsbxyyx commented May 7, 2020

@a364176773 oracle, postgresql use sequence.

Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zjinlei zjinlei changed the title fix: mysql insert use select last insert id is undo_log id value bugfix: fix mysql insert use select last insert id is undo_log id value May 7, 2020
Copy link
Contributor

@zjinlei zjinlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zjinlei zjinlei merged commit 9463b2b into apache:develop May 7, 2020
@jsbxyyx jsbxyyx deleted the fix_2655 branch May 22, 2020 09:25
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 this pull request may close these issues.

mybatis插入数据时返回的自增ID是undo_log的自增ID
5 participants