Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

persists repair-peers cache across repair service loops (backport #18400) #18483

Merged
merged 1 commit into from
Jul 7, 2021

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jul 7, 2021

This is an automatic backport of pull request #18400 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

The repair-peers cache is reset each time repair service loop runs,
and so computed repeatedly for the same slots:
https://github.com/solana-labs/solana/blob/d2b07dca9/core/src/repair_service.rs#L275

This commit uses an LRU cache to persists repair-peers for each slot.
In addition to LRU eviction rules, in order to avoid re-using outdated
data, each entry also has 10 seconds TTL.

(cherry picked from commit a0551b4)
@mergify mergify bot added the automerge Merge this Pull Request automatically once CI passes label Jul 7, 2021
@codecov
Copy link

codecov bot commented Jul 7, 2021

Codecov Report

Merging #18483 (d6938ed) into v1.7 (0d0478c) will increase coverage by 0.0%.
The diff coverage is 97.1%.

@@           Coverage Diff           @@
##             v1.7   #18483   +/-   ##
=======================================
  Coverage    82.2%    82.2%           
=======================================
  Files         431      431           
  Lines      121162   121176   +14     
=======================================
+ Hits        99690    99713   +23     
+ Misses      21472    21463    -9     

@mergify mergify bot merged commit 9bb482e into v1.7 Jul 7, 2021
@mergify mergify bot deleted the mergify/bp/v1.7/pr-18400 branch July 7, 2021 15:43
@brooksprumo brooksprumo mentioned this pull request Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant