-
Notifications
You must be signed in to change notification settings - Fork 803
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix liveness goroutine leak in TaskListManager (#6563)
What changed? Liveness.Stop should not call shutdownFn because there is not IsLive check. Even adding IsLive check in Stop would be confusing since the function literally means that shut down liveness only. Liveness.eventLoop should not call Stop() which caused the deadlock (cyclic wait). Why? Liveness can cause deadlock which caused a goroutine leak How did you test it? Unit Test with go routine leak detector
- Loading branch information
1 parent
c2a8701
commit 1b1afb9
Showing
3 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters