Repository navigation
Discovery.Manager: close sync ch after sender() is stopped - #14465
Merged
bboreham merged 5 commits intoJul 11, 2025
Merged
Conversation
Signed-off-by: liyandi <[email protected]>
Signed-off-by: liyandi <[email protected]>
Contributor
Author
|
@roidelapluie @bboreham Hi, sorry for missing your reply for so long, hopefully this one still useful :) |
Member
|
@littlepangdi can you look at the merge conflict please? |
Contributor
Author
|
ok I'll do it today |
Contributor
Author
@bboreham thanks again for reminding ~ |
bboreham
approved these changes
Jul 11, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a reopen PR to fix #10217 , , a possible memory leak when quoating manager.Sync() outside manager's lifecycle(more background in grafana/loki#5238).
Former discuss can be found in this closed PR #10218.
Based on advice from @roidelapluie , I've updated using pattern to
ts, ok := <- tsetsin both scrape/manager.go and notifier/notifier.go