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

pkg/notify: fix create receiver on closed notifier (#1185) #1199

Merged
merged 3 commits into from
Dec 22, 2020

Conversation

ti-srebot
Copy link
Contributor

cherry-pick #1185 to release-4.0


What problem does this PR solve?

Fix #1169

What is changed and how it works?

  • Add a closed field in the notifier, if a notifier is closed, return an error when creating a new receiver.
  • Note we can either Close a notifier or Stop all receivers belonging to a notifier to recycle resources.

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

@amyangfei
Copy link
Contributor

/merge

@ti-srebot
Copy link
Contributor Author

@amyangfei Oops! This PR requires at least 1 LGTMs to merge. The current number of LGTM is 0

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Dec 22, 2020
@amyangfei
Copy link
Contributor

/merge

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

Your auto merge job has been accepted, waiting for:

  • 1184
  • 1195

@amyangfei
Copy link
Contributor

/merge

@ti-srebot
Copy link
Contributor Author

Your auto merge job has been accepted, waiting for:

  • 1195
  • 1195

@amyangfei amyangfei added DNM and removed DNM status/can-merge Indicates a PR has been approved by a committer. labels Dec 22, 2020
@amyangfei
Copy link
Contributor

/merge

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

Your auto merge job has been accepted, waiting for:

  • 1195
  • 1195
  • 1195
  • 1195

@ti-srebot
Copy link
Contributor Author

/run-all-tests

@ti-srebot ti-srebot merged commit c0654e3 into pingcap:release-4.0 Dec 22, 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.

2 participants