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

core/consensus: fix memory leak #977

Merged
merged 2 commits into from
Aug 15, 2022
Merged

core/consensus: fix memory leak #977

merged 2 commits into from
Aug 15, 2022

Conversation

corverroos
Copy link
Contributor

@corverroos corverroos commented Aug 15, 2022

Fixes leaked context in consensus stream handler due to variable shadowing.

Also trim receive channel on duty deadline.

category: bug
ticket: #974

@corverroos
Copy link
Contributor Author

profile:
image

@codecov
Copy link

codecov bot commented Aug 15, 2022

Codecov Report

Merging #977 (c905801) into main (57aae96) will decrease coverage by 0.02%.
The diff coverage is 35.82%.

@@            Coverage Diff             @@
##             main     #977      +/-   ##
==========================================
- Coverage   54.14%   54.11%   -0.03%     
==========================================
  Files         116      116              
  Lines       12750    12768      +18     
==========================================
+ Hits         6903     6910       +7     
- Misses       4831     4841      +10     
- Partials     1016     1017       +1     
Impacted Files Coverage Δ
core/consensus/component.go 56.42% <29.50%> (-3.46%) ⬇️
app/app.go 57.08% <100.00%> (+0.08%) ⬆️
core/qbft/qbft.go 81.97% <0.00%> (+0.42%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@xenowits
Copy link
Contributor

profile: image

how is this memory profile generated?

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Aug 15, 2022
@obol-bulldozer obol-bulldozer bot merged commit 7da767b into main Aug 15, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/consensusctx branch August 15, 2022 12:20
@corverroos
Copy link
Contributor Author

go tool pprof -http=: http://<charon_ip>:3620/debug/pprof/heap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants