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

processor: fix processor doesn't fully exit after p.stop is called #693

Merged
merged 2 commits into from
Jun 28, 2020

Conversation

amyangfei
Copy link
Contributor

What problem does this PR solve?

In some tests we find after changefeed is stopped via admin API, processor maybe not fully exit, and some kv client blocks at stream.Recv.

After some investigation we find processor doesn't cancel ddl puller when p.stop() is called.

What is changed and how it works?

Cancel ddl puller when in processor stop.

Check List

Tests

  • Integration test

Release note

  • Fix processor does not fully exit when changefeed is stopped via admin API.

@amyangfei
Copy link
Contributor Author

/run-integration-tests

@codecov-commenter
Copy link

codecov-commenter commented Jun 24, 2020

Codecov Report

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

@@             Coverage Diff             @@
##             master       #693   +/-   ##
===========================================
  Coverage   31.6600%   31.6600%           
===========================================
  Files            90         90           
  Lines          9084       9084           
===========================================
  Hits           2876       2876           
  Misses         5972       5972           
  Partials        236        236           

@amyangfei amyangfei added the status/ptal Could you please take a look? label Jun 24, 2020
@amyangfei
Copy link
Contributor Author

/run-integration-tests

Copy link
Member

@overvenus overvenus left a comment

Choose a reason for hiding this comment

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

LGTM

@overvenus overvenus added the LGT1 label Jun 28, 2020
Copy link
Contributor

@zier-one zier-one left a comment

Choose a reason for hiding this comment

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

LGTM

@zier-one zier-one added LGT2 and removed LGT1 status/ptal Could you please take a look? labels Jun 28, 2020
@zier-one zier-one merged commit 2e4957e into pingcap:master Jun 28, 2020
5kbpers pushed a commit to 5kbpers/ticdc that referenced this pull request Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants