Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: proper lifecycle for following logs using consumers (#366)
* fix: Following Container Logs feature fixes * fix the doc: `c.FollowOutput()` MUST be called before `c.StartLogProducer()` due to date race * do not allow multiple `c.StartLogProducer()` without calling a `c.StopLogProducer()` * run `c.StopLogProducer()` in `c.Terminate()` to reduce risk of an accidental goroutine leak * fix tests, write new tests * fix: handle error when stopping log producer * fix: discard error in test echo handler * chore: initialize stop producer in reuse-recreate * fix: do not terminate a container that has been marked for termination in test --------- Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
- Loading branch information
1 parent
ac65ec9
commit dd66783
Showing
4 changed files
with
153 additions
and
79 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
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