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

fix: log streaming resource leaks #2026

Merged
merged 5 commits into from
Jan 8, 2024
Merged

Conversation

lostbean
Copy link
Contributor

@lostbean lostbean commented Jan 8, 2024

Description:

This PR fixes resources leaks during reading and streaming of service log files. Two goroutines (one in the central logs and one in the websocket processing) were not being closed after the streaming connection would be closed. Also the file reader used to taif -f the log file wasn't being close, leading the multiple processes reading the same file piling-up when the reconnections happened.

Is this change user facing?

NO

@lostbean lostbean requested a review from tedim52 January 8, 2024 13:41
@tedim52 tedim52 added this pull request to the merge queue Jan 8, 2024
Merged via the queue into main with commit 7f8db9b Jan 8, 2024
35 checks passed
@tedim52 tedim52 deleted the edgar/fix_log_streaming_flow branch January 8, 2024 15:40
github-merge-queue bot pushed a commit that referenced this pull request Jan 8, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.86.0](0.85.56...0.86.0)
(2024-01-08)


### ⚠ BREAKING CHANGES

* allow to mount multiple artifacts to the same folder in a service.
Users will need to replace the `Directory.artifac_name` field key with
`Directory.artifac_names`
([#2025](#2025))
* change persistent directory name to deterministic value
([#2006](#2006))

### Features

* allow to mount multiple artifacts to the same folder in a service.
Users will need to replace the `Directory.artifac_name` field key with
`Directory.artifac_names`
([#2025](#2025))
([b51df93](b51df93))
* emui design updates
([#2028](#2028))
([0e480cf](0e480cf))
* Engine Traefik Docker labels for REST API reverse proxy routing
([#2019](#2019))
([6541884](6541884))


### Bug Fixes

* change persistent directory name to deterministic value
([#2006](#2006))
([fa08707](fa08707)),
closes [#1998](#1998)
* log streaming resource leaks
([#2026](#2026))
([7f8db9b](7f8db9b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: kurtosisbot <kurtosisbot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants