Skip to content

Conversation

@Algo-devops-service
Copy link
Contributor

@Algo-devops-service Algo-devops-service commented Dec 29, 2021

GitHub Logo

Highlights

3.2.1 introduced a minor delay whenever a catchpoint was generated every 10,000 rounds. This fix resolves that issue for nodes that have catchpoint generation enabled (e.g. archival nodes).

Changelog

  1. Ledger

Protocol Upgrade

This release does not contain a protocol upgrade.

Additional Resources

tsachiherman and others added 4 commits December 27, 2021 11:52
)

## Summary

This PR moves the catchpoint file writing to be performed outside of the trackers lock. This resolves the issue where a long catchpoint file writing blocks the agreement from validating and propagating votes.

## Test Plan

* [x] Test manually & use existing tests.
* [x] Implement a unit test
* [x] Deploy a local network where the catchpoint writing takes a long time and verify it doesn't get blocked during catchpoint writing.
@codecov-commenter
Copy link

codecov-commenter commented Dec 29, 2021

Codecov Report

Merging #3356 (201337a) into rel/stable (97e8068) will increase coverage by 0.12%.
The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff               @@
##           rel/stable    #3356      +/-   ##
==============================================
+ Coverage       47.34%   47.47%   +0.12%     
==============================================
  Files             369      369              
  Lines           59649    59652       +3     
==============================================
+ Hits            28243    28318      +75     
+ Misses          28122    28045      -77     
- Partials         3284     3289       +5     
Impacted Files Coverage Δ
ledger/acctupdates.go 65.96% <ø> (+0.95%) ⬆️
ledger/bulletin.go 93.54% <ø> (ø)
ledger/catchpointtracker.go 54.92% <ø> (+12.44%) ⬆️
ledger/metrics.go 100.00% <ø> (ø)
ledger/notifier.go 88.57% <ø> (ø)
ledger/txtail.go 87.50% <ø> (ø)
ledger/tracker.go 76.88% <100.00%> (-1.94%) ⬇️
ledger/blockqueue.go 81.03% <0.00%> (-1.15%) ⬇️
catchup/peerSelector.go 98.95% <0.00%> (-1.05%) ⬇️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 97e8068...201337a. Read the comment docs.

@onetechnical onetechnical marked this pull request as ready for review January 4, 2022 17:03
@onetechnical onetechnical self-assigned this Jan 4, 2022
@algojohnlee algojohnlee merged commit d2289a5 into algorand:rel/stable Jan 4, 2022
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.

9 participants