-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Unsubscribe all connectivity callbacks on Channel.close #19030
Conversation
cc @lidizheng |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try to add a small unit test for this behavior, to prevent regression?
@lidizheng it's hard to test against it without refactoring the logic entirely (it'd be easier to fix the entire logic than to test against it)--the reason being the symptom (i.e. the exception) is thrown on a different thread. |
I agree the text logic probably is more complicate than the fix itself. But it shouldn’t be a challenging one. You can create the callback with the access to the unittest object. I will label this as help wanted, so if someone have bandwidth can work on it. |
There's no test for any of these in |
Fixes #18995
There could be a better fix available, but seems like the code should be reworked more fundamentally anyway so this simple fix could be fine for now