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

changefeed: fix goroutine leak when changefeed is paused or stopped (#1066) #1075

Merged
merged 1 commit into from
Nov 13, 2020

Conversation

ti-srebot
Copy link
Contributor

cherry-pick #1066 to release-4.0


What problem does this PR solve?

Some goroutines in owner changefeed internal routines are not exited when changefeed is paused or stopped.

What is changed and how it works?

  • This PR chooses to cancel the context to destruct all subroutines in a changefeed.
  • Also refine some log output

Check List

Tests

  • Unit test
  • Integration test

Release note

  • No release note

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor Author

/run-all-tests

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Nov 13, 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 Nov 13, 2020
@ti-srebot
Copy link
Contributor Author

/run-all-tests

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (release-4.0@25cca48). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             release-4.0      #1075   +/-   ##
================================================
  Coverage               ?   34.4014%           
================================================
  Files                  ?        109           
  Lines                  ?      11360           
  Branches               ?          0           
================================================
  Hits                   ?       3908           
  Misses                 ?       7031           
  Partials               ?        421           

@ti-srebot ti-srebot merged commit ceab68d into pingcap:release-4.0 Nov 13, 2020
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/LGT1 Indicates that a PR has LGTM 1. 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.

4 participants