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

puller(ticdc): detect resolved ts stuck in puller #10182

Merged

Conversation

sdojjy
Copy link
Member

@sdojjy sdojjy commented Nov 29, 2023

What problem does this PR solve?

Issue Number: close #10181

What is changed and how it works?

detect if the resolved ts is stuck, if so , restart the changefeed

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

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/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 29, 2023
@sdojjy sdojjy changed the title puller(ticdc): detect resolved ts stuck in puller (WIP)puller(ticdc): detect resolved ts stuck in puller Nov 29, 2023
@ti-chi-bot ti-chi-bot bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 29, 2023
@sdojjy sdojjy changed the title (WIP)puller(ticdc): detect resolved ts stuck in puller puller(ticdc): detect resolved ts stuck in puller Nov 29, 2023
@ti-chi-bot ti-chi-bot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 29, 2023
@sdojjy
Copy link
Member Author

sdojjy commented Nov 30, 2023

/retest-required

@@ -71,6 +71,10 @@ type pullerImpl struct {
changefeed model.ChangeFeedID
tableID model.TableID
tableName string

cfg *config.ServerConfig
Copy link
Contributor

Choose a reason for hiding this comment

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

no need to store the server config, it's a global variable

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Dec 1, 2023
@ti-chi-bot ti-chi-bot bot added the lgtm label Dec 1, 2023
Copy link
Contributor

ti-chi-bot bot commented Dec 1, 2023

[APPROVALNOTIFIER] This PR is APPROVED

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

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,asddongmen]

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 Dec 1, 2023
Copy link
Contributor

ti-chi-bot bot commented Dec 1, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-12-01 03:19:19.561412969 +0000 UTC m=+1151988.226639149: ☑️ agreed by 3AceShowHand.
  • 2023-12-01 03:38:10.671089152 +0000 UTC m=+1153119.336315348: ☑️ agreed by asddongmen.

@ti-chi-bot ti-chi-bot bot merged commit 05e0328 into pingcap:master Dec 1, 2023
14 checks passed
@sdojjy sdojjy deleted the restart-changefeed-if-resovled-ts-get-stuck branch December 1, 2023 06:58
@sdojjy sdojjy added needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. needs-cherry-pick-release-7.1 Should cherry pick this PR to release-7.1 branch. needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. labels Dec 1, 2023
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Dec 1, 2023
@ti-chi-bot
Copy link
Member

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

@ti-chi-bot
Copy link
Member

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

@ti-chi-bot
Copy link
Member

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

ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Dec 1, 2023
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Dec 1, 2023
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-6.5 Should cherry pick this PR to release-6.5 branch. needs-cherry-pick-release-7.1 Should cherry pick this PR to release-7.1 branch. 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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

puller(ticdc): detect resolved ts stuck in puller
4 participants