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

sink-to-mysql(cdc) simplify conflict detector, prevent workload skew issue #10376

Merged
merged 4 commits into from
Jan 2, 2024

Conversation

zhangjinpeng87
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #10341

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test

Questions

Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?

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/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 27, 2023
Signed-off-by: zhangjinpeng1987 <[email protected]>
Signed-off-by: zhangjinpeng1987 <[email protected]>
@zhangjinpeng87
Copy link
Contributor Author

/test cdc-integration-storage-test

@zhangjinpeng87
Copy link
Contributor Author

/test dm-integration-test

@asddongmen asddongmen self-requested a review December 28, 2023 06:06
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Dec 28, 2023
if resolved && assignedTo == assignedToAny {
assignedTo = n.RandWorkerID()
func (n *Node) maybeReadyToRun() {
if ok := n.checkReadiness(); ok {
Copy link
Contributor

Choose a reason for hiding this comment

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

When a large number of small transactions are in conflict, does performance degrade significantly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is suppose not fast in the case of there are a large number of small transactions have conflict, no matter what you do.

@zhangjinpeng87
Copy link
Contributor Author

/test dm-integration-test

@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Jan 2, 2024
Copy link
Contributor

ti-chi-bot bot commented Jan 2, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: asddongmen, hicqu

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:

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

Copy link
Contributor

ti-chi-bot bot commented Jan 2, 2024

[LGTM Timeline notifier]

Timeline:

  • 2023-12-28 08:47:44.90067733 +0000 UTC m=+1728355.937904257: ☑️ agreed by asddongmen.
  • 2024-01-02 04:43:59.571152239 +0000 UTC m=+2145730.608379166: ☑️ agreed by hicqu.

@ti-chi-bot ti-chi-bot bot merged commit 9e0cacf into pingcap:master Jan 2, 2024
14 checks passed
3AceShowHand added a commit to 3AceShowHand/tiflow that referenced this pull request Feb 7, 2024
3AceShowHand added a commit to 3AceShowHand/tiflow that referenced this pull request Feb 26, 2024
3AceShowHand added a commit to 3AceShowHand/tiflow that referenced this pull request Feb 26, 2024
3AceShowHand added a commit to 3AceShowHand/tiflow that referenced this pull request Feb 27, 2024
3AceShowHand added a commit to 3AceShowHand/tiflow that referenced this pull request Feb 28, 2024
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-7.5: #10778.

@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-7.1: #10779.

@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-6.5: #10780.

ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Mar 14, 2024
CharlesCheung96 pushed a commit to ti-chi-bot/tiflow that referenced this pull request Mar 20, 2024
ti-chi-bot bot pushed a commit that referenced this pull request Mar 20, 2024
ti-chi-bot bot pushed a commit that referenced this pull request Mar 31, 2024
ti-chi-bot bot pushed a commit that referenced this pull request Mar 31, 2024
CharlesCheung96 added a commit to CharlesCheung96/tiflow that referenced this pull request Apr 7, 2024
@ti-chi-bot ti-chi-bot removed the needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. label Apr 7, 2024
CharlesCheung96 added a commit to CharlesCheung96/tiflow that referenced this pull request Apr 9, 2024
@ti-chi-bot ti-chi-bot removed needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. needs-cherry-pick-release-7.1 Should cherry pick this PR to release-7.1 branch. labels Apr 15, 2024
CharlesCheung96 added a commit to CharlesCheung96/tiflow that referenced this pull request Apr 18, 2024
CharlesCheung96 added a commit to CharlesCheung96/tiflow that referenced this pull request Apr 18, 2024
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Apr 18, 2024
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Apr 18, 2024
CharlesCheung96 added a commit to CharlesCheung96/tiflow that referenced this pull request Apr 18, 2024
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sink to mysql (cdc) workload skew issue
5 participants