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

executor: fix data inconsistency after load data ... replace into ... | tidb-test=e5f82b826aeb7e912c2d4dc36389960daac36d96 #56521

Conversation

fzzf678
Copy link
Contributor

@fzzf678 fzzf678 commented Oct 10, 2024

This is an cherry-pick of #56415

What problem does this PR solve?

Issue Number: close #56408

Problem Summary:

What changed and how does it work?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 10, 2024
@fzzf678 fzzf678 changed the title executor: fix data inconsistency after load data ... replace into ... executor: fix data inconsistency after load data ... replace into ... | tidb-test=release-6.5.10 plugin=release-6.5 Oct 10, 2024
@fzzf678 fzzf678 changed the title executor: fix data inconsistency after load data ... replace into ... | tidb-test=release-6.5.10 plugin=release-6.5 executor: fix data inconsistency after load data ... replace into ... | tidb-test=release-6.5.10 Oct 10, 2024
@fzzf678
Copy link
Contributor Author

fzzf678 commented Oct 10, 2024

/ok-to-test

@ti-chi-bot ti-chi-bot bot added the ok-to-test Indicates a PR is ready to be tested. label Oct 10, 2024
@fzzf678 fzzf678 changed the title executor: fix data inconsistency after load data ... replace into ... | tidb-test=release-6.5.10 executor: fix data inconsistency after load data ... replace into ... | tidb-test=release-6.5 Oct 10, 2024
@fzzf678
Copy link
Contributor Author

fzzf678 commented Oct 10, 2024

/retest

@fzzf678 fzzf678 changed the title executor: fix data inconsistency after load data ... replace into ... | tidb-test=release-6.5 executor: fix data inconsistency after load data ... replace into ... | tidb-test=release-6.5.10 Oct 10, 2024
@fzzf678
Copy link
Contributor Author

fzzf678 commented Oct 10, 2024

/retest

@pingcap pingcap deleted a comment from tiprow bot Oct 10, 2024
@pingcap pingcap deleted a comment from tiprow bot Oct 10, 2024
@pingcap pingcap deleted a comment from tiprow bot Oct 10, 2024
@pingcap pingcap deleted a comment from tiprow bot Oct 10, 2024
@pingcap pingcap deleted a comment from tiprow bot Oct 10, 2024
@pingcap pingcap deleted a comment from tiprow bot Oct 10, 2024
@fzzf678 fzzf678 changed the title executor: fix data inconsistency after load data ... replace into ... | tidb-test=release-6.5.10 executor: fix data inconsistency after load data ... replace into ... | tidb-test=c1ec4c1217f86e83e4c07da09ef909e3af84ee7e Oct 10, 2024
@fzzf678
Copy link
Contributor Author

fzzf678 commented Oct 10, 2024

/retest

@fzzf678 fzzf678 changed the title executor: fix data inconsistency after load data ... replace into ... | tidb-test=c1ec4c1217f86e83e4c07da09ef909e3af84ee7e executor: fix data inconsistency after load data ... replace into ... | tidb-test=e5f82b826aeb7e912c2d4dc36389960daac36d96 Oct 10, 2024
@fzzf678
Copy link
Contributor Author

fzzf678 commented Oct 10, 2024

/retest

1 similar comment
@fzzf678
Copy link
Contributor Author

fzzf678 commented Oct 10, 2024

/retest

Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (release-6.5-20241009-v6.5.10@1d0e586). Learn more about missing BASE report.

Additional details and impacted files
@@                        Coverage Diff                        @@
##             release-6.5-20241009-v6.5.10     #56521   +/-   ##
=================================================================
  Coverage                                ?   73.6313%           
=================================================================
  Files                                   ?       1096           
  Lines                                   ?     352259           
  Branches                                ?          0           
=================================================================
  Hits                                    ?     259373           
  Misses                                  ?      76209           
  Partials                                ?      16677           

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Oct 10, 2024
@ti-chi-bot ti-chi-bot bot added the lgtm label Oct 10, 2024
Copy link

ti-chi-bot bot commented Oct 10, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CbcWestwolf, wjhuang2016

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [CbcWestwolf,wjhuang2016]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Oct 10, 2024
Copy link

ti-chi-bot bot commented Oct 10, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-10-10 07:46:40.489555538 +0000 UTC m=+1118555.909768545: ☑️ agreed by CbcWestwolf.
  • 2024-10-10 07:47:24.158632669 +0000 UTC m=+1118599.578845678: ☑️ agreed by wjhuang2016.

if err != nil {
return err
}
if skip {
break
Copy link
Contributor

Choose a reason for hiding this comment

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

break will skip removeRow for rest r.uniqueKeys. I'm not sure if this is expected. Please find some execution reviewers to check

@lance6716
Copy link
Contributor

/hold

@ti-chi-bot ti-chi-bot bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 10, 2024
@ti-chi-bot ti-chi-bot bot merged commit 3635e94 into pingcap:release-6.5-20241009-v6.5.10 Oct 10, 2024
10 checks passed
@lance6716
Copy link
Contributor

/unhold

I see this is the same logic in master branch

@ti-chi-bot ti-chi-bot bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm ok-to-test Indicates a PR is ready to be tested. release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants