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

retains crds values if the origin is still active (backport #16576)#16771

Merged
mergify[bot] merged 1 commit intov1.6from
mergify/bp/v1.6/pr-16576
Apr 23, 2021
Merged

retains crds values if the origin is still active (backport #16576)#16771
mergify[bot] merged 1 commit intov1.6from
mergify/bp/v1.6/pr-16576

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented Apr 23, 2021

This is an automatic backport of pull request #16576 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/

Local timestamps are updated for records associated with a pubkey if the
origin is still active:
https://github.com/solana-labs/solana/blob/c8ed14c64/core/src/crds.rs#L301-L311

However this is done inconsistently on some gossip paths (pull requests
and pull responses) but not all (e.g. push messages). Additionally
update_record_timestamp is inefficient since there can be ~800 values
associated with each pubkey.

This commit updates records timestamps only on contact-infos; and,
instead utilizes origin's timestamp when purging old values.

(cherry picked from commit 2c82f21)
@mergify mergify Bot added automerge Merge this Pull Request automatically once CI passes and removed automerge Merge this Pull Request automatically once CI passes labels Apr 23, 2021
@mergify
Copy link
Copy Markdown
Contributor Author

mergify Bot commented Apr 23, 2021

automerge label removed due to a CI failure

@mergify mergify Bot added the automerge Merge this Pull Request automatically once CI passes label Apr 23, 2021
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2021

Codecov Report

Merging #16771 (e59d29d) into v1.6 (9413051) will increase coverage by 0.0%.
The diff coverage is 85.9%.

@@           Coverage Diff            @@
##             v1.6   #16771    +/-   ##
========================================
  Coverage    82.9%    82.9%            
========================================
  Files         414      416     +2     
  Lines      114017   114525   +508     
========================================
+ Hits        94544    95021   +477     
- Misses      19473    19504    +31     

@mergify mergify Bot merged commit d9726e6 into v1.6 Apr 23, 2021
@mergify mergify Bot deleted the mergify/bp/v1.6/pr-16576 branch April 23, 2021 16: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