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 failed changefeed can't be removed #782

Merged
merged 4 commits into from
Jul 27, 2020

Conversation

amyangfei
Copy link
Contributor

What problem does this PR solve?

Fix bug in #766

What is changed and how it works?

  • Refine collectChangefeedInfo function, if error exists in ChangefeedInfo and changefeed admin job type is not stop or remove, mark the changefeed as failed
  • Support to remove failed changefeed via cdc cli changefeed remove

Check List

Tests

  • Unit test
  • Integration test

Release note

  • Fix the bug that failed changefeed can't be removed via cdc cli.

@amyangfei amyangfei added the subject/usability Denotes an issue or pull request is related to usability. label Jul 21, 2020
@amyangfei amyangfei added this to the v4.0.4 milestone Jul 21, 2020
@amyangfei
Copy link
Contributor Author

/run-integration-tests

@amyangfei amyangfei added the status/ptal Could you please take a look? label Jul 21, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jul 21, 2020

Codecov Report

Merging #782 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master       #782   +/-   ##
===========================================
  Coverage   33.7054%   33.7054%           
===========================================
  Files            94         94           
  Lines         10482      10482           
===========================================
  Hits           3533       3533           
  Misses         6604       6604           
  Partials        345        345           

@overvenus
Copy link
Member

/lgtm

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Jul 22, 2020
@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Jul 27, 2020
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Jul 27, 2020
@zier-one
Copy link
Contributor

/merge

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

/run-all-tests

@ti-srebot ti-srebot merged commit 5388867 into pingcap:master Jul 27, 2020
qinggniq pushed a commit to qinggniq/ticdc that referenced this pull request Jul 28, 2020
* owner: fix failed changefeed can't be removed

* add integration test

* fix test case

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
@amyangfei amyangfei deleted the fix-failed-task-remove branch August 10, 2020 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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? subject/usability Denotes an issue or pull request is related to usability.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants