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 undo_log id repeat #4985

Merged
merged 36 commits into from
Oct 12, 2022
Merged

Conversation

whxxxxx
Copy link
Contributor

@whxxxxx whxxxxx commented Oct 10, 2022

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

fix undo_log id repeat

Ⅱ. Does this pull request fix one issue?

#4949

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

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

slievrly and others added 29 commits April 30, 2019 16:44
release 0.5.2
Release 0.6.1
release 0.7.1
release 0.8.0
[release] release 1.0.0
[release]: release for 1.4.0
Signed-off-by: slievrly <slievrly@163.com>
Signed-off-by: slievrly <slievrly@163.com>
Signed-off-by: slievrly <slievrly@163.com>
@whxxxxx whxxxxx changed the title Hotfix field distinct fix:fix undo_log id repeat Oct 10, 2022
@@ -91,6 +91,9 @@ private String buildBeforeImageSQL(TableMeta tableMeta, ArrayList<List<Object>>
suffix.append(" FOR UPDATE");
StringJoiner selectSQLJoin = new StringJoiner(", ", prefix.toString(), suffix.toString());
if (ONLY_CARE_UPDATE_COLUMNS) {
for (String updateColumn : updateColumns) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not handle it in SQLUpdateRecognizer#getUpdateColumns

@funky-eyes funky-eyes changed the title fix:fix undo_log id repeat bugfix: fix undo_log id repeat Oct 10, 2022
@funky-eyes funky-eyes added this to the 1.6.0 milestone Oct 10, 2022
@funky-eyes funky-eyes added type: bug Category issues or prs related to bug. first-time contributor first-time contributor module/rm-datasource rm-datasource module labels Oct 10, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 10, 2022

Codecov Report

Merging #4985 (025955b) into develop (6c1c857) will decrease coverage by 0.19%.
The diff coverage is 16.66%.

❗ Current head 025955b differs from pull request most recent head 79cb474. Consider uploading reports for the commit 79cb474 to get more accurate results

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #4985      +/-   ##
=============================================
- Coverage      48.77%   48.58%   -0.20%     
+ Complexity      4078     4045      -33     
=============================================
  Files            734      732       -2     
  Lines          25855    25773      -82     
  Branches        3190     3173      -17     
=============================================
- Hits           12610    12521      -89     
- Misses         11901    11916      +15     
+ Partials        1344     1336       -8     
Impacted Files Coverage Δ
.../java/io/seata/rm/datasource/SqlGenerateUtils.java 95.12% <ø> (ø)
...o/seata/rm/datasource/exec/BaseInsertExecutor.java 61.92% <ø> (ø)
.../rm/datasource/exec/BaseTransactionalExecutor.java 55.92% <0.00%> (ø)
...va/io/seata/rm/datasource/exec/DeleteExecutor.java 83.33% <ø> (ø)
.../seata/rm/datasource/exec/MultiDeleteExecutor.java 94.11% <ø> (ø)
...a/io/seata/rm/datasource/sql/struct/TableMeta.java 96.42% <ø> (ø)
...tasource/sql/struct/cache/MysqlTableMetaCache.java 80.00% <ø> (ø)
...seata/rm/datasource/undo/AbstractUndoExecutor.java 69.01% <ø> (ø)
...datasource/undo/mysql/MySQLUndoDeleteExecutor.java 87.50% <ø> (ø)
...datasource/undo/mysql/MySQLUndoUpdateExecutor.java 87.50% <ø> (ø)
... and 25 more

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first-time contributor first-time contributor module/rm-datasource rm-datasource module multilingual type: bug Category issues or prs related to bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants