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

kv-client(cdc): fix the bug that region errors can be lost #9963

Merged
merged 13 commits into from
Oct 31, 2023

Conversation

hicqu
Copy link
Contributor

@hicqu hicqu commented Oct 30, 2023

What problem does this PR solve?

Fix the bug that region errors can be lost.

Issue Number: close #9673

What is changed and how it works?

Every region worker consumes region events from a queue. In sharedRegionWorker.handleSingleRegionError, it clears the Region State from the source stream directly. It's wrong because the event can be a stale one and the Region State in the stream may be created after the region error is handled.

This PR fixes the problem.

Check List

Tests

  • Manual test (add detailed scripts or steps below)

Questions

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

Release note

None

hicqu added 7 commits October 18, 2023 14:09
Signed-off-by: qupeng <[email protected]>
Signed-off-by: qupeng <[email protected]>
Signed-off-by: qupeng <[email protected]>
Signed-off-by: qupeng <[email protected]>
Signed-off-by: qupeng <[email protected]>
Signed-off-by: qupeng <[email protected]>
@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 30, 2023
hicqu added 3 commits October 30, 2023 13:00
Signed-off-by: qupeng <[email protected]>
Signed-off-by: qupeng <[email protected]>
Signed-off-by: qupeng <[email protected]>
@hicqu hicqu requested review from sdojjy and 3AceShowHand October 30, 2023 06:25
@hicqu
Copy link
Contributor Author

hicqu commented Oct 30, 2023

/retest

Signed-off-by: qupeng <[email protected]>
@3AceShowHand
Copy link
Contributor

/retest

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Oct 30, 2023
@hicqu
Copy link
Contributor Author

hicqu commented Oct 30, 2023

/retest

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Oct 30, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 3AceShowHand, sdojjy

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 [3AceShowHand,sdojjy]

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 added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Oct 30, 2023
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Oct 30, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-10-30 09:34:59.09944686 +0000 UTC m=+2859296.686557005: ☑️ agreed by 3AceShowHand.
  • 2023-10-30 23:35:47.725157954 +0000 UTC m=+2909745.312268101: ☑️ agreed by sdojjy.

@nongfushanquan
Copy link
Contributor

/retest

@hicqu
Copy link
Contributor Author

hicqu commented Oct 31, 2023

/retest

@ti-chi-bot ti-chi-bot bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 31, 2023
@hicqu
Copy link
Contributor Author

hicqu commented Oct 31, 2023

/retest

@ti-chi-bot ti-chi-bot bot merged commit 44a7474 into pingcap:master Oct 31, 2023
3 checks passed
@ti-chi-bot
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. 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.

resolved ts and checkpoint ts not advance when kv-client.enable-multiplexing = true
5 participants