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

owner: fix cleanup stale tasks before capture info is constructed #1269

Merged
merged 4 commits into from
Jan 6, 2021

Conversation

amyangfei
Copy link
Contributor

@amyangfei amyangfei commented Jan 5, 2021

What problem does this PR solve?

Fix #1268, since #1184 has been merged into release-4.0 before 4.0.10 is released, this PR needs to be shipped in 4.0.10 too.

No release since this is a bug fix in non-release version

What is changed and how it works?

Add a flag to record whether capture information is initialized in owner.

Check List

Tests

  • Unit test
  • Integration test

Release note

  • No release note

@amyangfei amyangfei added type/bugfix This PR fixes a bug. needs-cherry-pick-release-4.0 Should cherry pick this PR to release-4.0 branch. needs-cherry-pick-5.0-rc labels Jan 5, 2021
@amyangfei amyangfei added this to the v4.0.10 milestone Jan 5, 2021
@amyangfei
Copy link
Contributor Author

/run-all-tests

@amyangfei
Copy link
Contributor Author

/run-all-tests

@codecov-io
Copy link

codecov-io commented Jan 5, 2021

Codecov Report

Merging #1269 (27122a0) into master (589e739) will increase coverage by 0.0584%.
The diff coverage is 100.0000%.

@@               Coverage Diff                @@
##             master      #1269        +/-   ##
================================================
+ Coverage   46.1910%   46.2495%   +0.0584%     
================================================
  Files           129        129                
  Lines         13022      13025         +3     
================================================
+ Hits           6015       6024         +9     
+ Misses         6342       6338         -4     
+ Partials        665        663         -2     

@amyangfei amyangfei added the status/ptal Could you please take a look? label Jan 5, 2021
@overvenus
Copy link
Member

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Jan 6, 2021
@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Jan 6, 2021
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Jan 6, 2021
@amyangfei
Copy link
Contributor Author

/merge

@ti-srebot
Copy link
Contributor

Your auto merge job has been accepted, waiting for:

  • 1276
  • 1276

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Jan 6, 2021
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit e8a45e9 into pingcap:master Jan 6, 2021
ti-srebot pushed a commit to ti-srebot/ticdc that referenced this pull request Jan 6, 2021
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
ti-srebot pushed a commit to ti-srebot/ticdc that referenced this pull request Jan 6, 2021
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
ti-srebot added a commit that referenced this pull request Jan 6, 2021
) (#1280)

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-cherry-pick-release-4.0 Should cherry pick this PR to release-4.0 branch. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. status/ptal Could you please take a look? type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cdc capture meets [CDC:ErrTaskStatusNotExists] error and exits
5 participants