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

allow ancient append vec threshold to be set on cli#28707

Merged
jeffwashington merged 2 commits intosolana-labs:masterfrom
jeffwashington:nov4
Nov 11, 2022
Merged

allow ancient append vec threshold to be set on cli#28707
jeffwashington merged 2 commits intosolana-labs:masterfrom
jeffwashington:nov4

Conversation

@jeffwashington
Copy link
Copy Markdown
Contributor

@jeffwashington jeffwashington commented Nov 1, 2022

Problem

For testing ancient append vecs, allow caller to specify an offset for how many additional slots within the last epoch to include into ancient append vecs. This causes the ancient append vec code to run more normally while we're still collecting rent.
Ancient append vecs are behind this cli arg, so this will not affect any real validators or tests.

Summary of Changes

Fixes #

@jeffwashington jeffwashington force-pushed the nov4 branch 5 times, most recently from 5b71a6e to 0b946c6 Compare November 2, 2022 18:42
@jeffwashington jeffwashington changed the title put all slots > 100k old into ancient append vecs allow ancient append vec threshold to be set on cli Nov 2, 2022
@jeffwashington jeffwashington force-pushed the nov4 branch 6 times, most recently from 20521b2 to 96b1621 Compare November 2, 2022 19:03
@jeffwashington jeffwashington marked this pull request as ready for review November 2, 2022 20:45
Copy link
Copy Markdown
Contributor

@apfitzge apfitzge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like the change overall. Concern on the CLI default (I probably don't understand clap) and some comments

Comment thread ledger-tool/src/main.rs Outdated
Comment thread runtime/src/accounts_db.rs Outdated
Comment thread runtime/src/accounts_db.rs Outdated
Comment thread runtime/src/accounts_db.rs
Comment thread ledger-tool/src/main.rs Outdated
@jeffwashington jeffwashington force-pushed the nov4 branch 3 times, most recently from 0ee8f9e to cd966bf Compare November 4, 2022 13:11
apfitzge
apfitzge previously approved these changes Nov 10, 2022
Copy link
Copy Markdown
Contributor

@apfitzge apfitzge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor typo, other than that it looks good.

Comment thread runtime/src/accounts_db.rs Outdated
@mergify mergify Bot dismissed apfitzge’s stale review November 10, 2022 15:27

Pull request has been modified.

@jeffwashington jeffwashington merged commit f69e847 into solana-labs:master Nov 11, 2022
xiangzhu70 pushed a commit to xiangzhu70/solana that referenced this pull request Nov 16, 2022
* allow ancient append vec threshold to be set on cli

* pr responses
gnapoli23 pushed a commit to gnapoli23/solana that referenced this pull request Dec 16, 2022
* allow ancient append vec threshold to be set on cli

* pr responses
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants