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

Ledger: bulletin leaking waiters fix #4962

Merged

Conversation

almog-t
Copy link
Contributor

@almog-t almog-t commented Jan 3, 2023

Summary

Fixes potential leak of ledger waiters.

Test Plan

Unit test that triggers leak in ledger_test.go.

@almog-t almog-t requested review from algorandskiy and id-ms January 3, 2023 11:22
@almog-t almog-t self-assigned this Jan 3, 2023
@almog-t almog-t requested a review from cce January 3, 2023 11:24
@almog-t almog-t changed the title bulleting leaking waiters fix Ledger: bulleting leaking waiters fix Jan 3, 2023
@almog-t almog-t changed the title Ledger: bulleting leaking waiters fix Ledger: bulletin leaking waiters fix Jan 3, 2023
@codecov
Copy link

codecov bot commented Jan 3, 2023

Codecov Report

Merging #4962 (537a8d2) into master (35bcd35) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #4962      +/-   ##
==========================================
- Coverage   53.74%   53.70%   -0.04%     
==========================================
  Files         433      433              
  Lines       54050    54051       +1     
==========================================
- Hits        29049    29028      -21     
- Misses      22759    22777      +18     
- Partials     2242     2246       +4     
Impacted Files Coverage Δ
ledger/bulletin.go 93.75% <100.00%> (+0.20%) ⬆️
ledger/tracker.go 74.26% <0.00%> (-4.65%) ⬇️
network/wsPeer.go 66.43% <0.00%> (-1.90%) ⬇️
catchup/peerSelector.go 98.95% <0.00%> (-1.05%) ⬇️
util/rateLimit.go 82.35% <0.00%> (-0.99%) ⬇️
catchup/service.go 69.32% <0.00%> (-0.49%) ⬇️
ledger/ledger.go 70.80% <0.00%> (+0.93%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@algorandskiy
Copy link
Contributor

@almog-t is it possible to write a test for this?

@almog-t almog-t marked this pull request as ready for review January 5, 2023 08:35
@algorandskiy algorandskiy merged commit 4d45e49 into algorand:master Jan 6, 2023
winder pushed a commit to winder/go-algorand that referenced this pull request Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants