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

Obsolete uncleaned_roots in accounts index. #4092

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

HaoranYi
Copy link

@HaoranYi HaoranYi commented Dec 12, 2024

Problem

In PR#4044, we no longer filter clean by uncleaned_roots. All slots that are older than the max_root_to_clean are considered in clean.

The concept of uncleaned_roots is now obsolete. And we should remove it.

Summary of Changes

Remove uncleaned_roots from account index.

Fixes #

@HaoranYi HaoranYi changed the title remove uncleaned_slots Obsolete uncleaned_roots in accounts index. Dec 12, 2024
@HaoranYi HaoranYi marked this pull request as draft December 12, 2024 22:55
@HaoranYi HaoranYi marked this pull request as ready for review December 13, 2024 15:25
@HaoranYi HaoranYi force-pushed the remove_uncleaned_root branch from daa833f to 3133d8e Compare December 13, 2024 21:25
accounts-db/src/accounts_db.rs Outdated Show resolved Hide resolved
accounts-db/src/accounts_db.rs Show resolved Hide resolved
accounts-db/src/accounts_db/tests.rs Show resolved Hide resolved
accounts-db/src/accounts_db/tests.rs Outdated Show resolved Hide resolved
accounts-db/src/accounts_db/tests.rs Outdated Show resolved Hide resolved
@HaoranYi HaoranYi requested a review from brooksprumo December 13, 2024 23:09
accounts-db/src/accounts_db.rs Show resolved Hide resolved
accounts-db/src/accounts_db/tests.rs Outdated Show resolved Hide resolved
accounts-db/src/accounts_db/tests.rs Outdated Show resolved Hide resolved
accounts-db/src/accounts_db/tests.rs Outdated Show resolved Hide resolved
accounts-db/src/accounts_db/tests.rs Outdated Show resolved Hide resolved
@HaoranYi HaoranYi force-pushed the remove_uncleaned_root branch from 6ba07a4 to 0eb57e4 Compare December 16, 2024 20:32
@HaoranYi
Copy link
Author

Rebase to pick up #4147.

Copy link

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

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

I think this is good now! Two tiny nits:

accounts-db/src/accounts_db/tests.rs Outdated Show resolved Hide resolved
accounts-db/src/accounts_db/tests.rs Outdated Show resolved Hide resolved
Copy link

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

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

:shipit:

I think it'd be good to get @jeffwashington to double check as well

@HaoranYi
Copy link
Author

HaoranYi commented Dec 19, 2024

The following graph shows the number of open append_vec from dev2, which are running with this PR for two days on mainnet. These numbers look normal.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants