-
Notifications
You must be signed in to change notification settings - Fork 4.5k
test_shrink_candidate_slots uses write cache #29145
test_shrink_candidate_slots uses write cache #29145
Conversation
55b2cfd
to
ee6236b
Compare
@@ -13771,7 +13771,7 @@ pub mod tests { | |||
fn test_shrink_candidate_slots() { | |||
solana_logger::setup(); | |||
|
|||
let accounts = AccountsDb::new_single_for_tests(); | |||
let mut accounts = AccountsDb::new_single_for_tests(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the intent to also enable the write cache here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The write cache will be enabled globally shortly. The shrink ratio parameter doesn't affect the v1 shrink code path anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha.
Does
accounts.shrink_candidate_slots();
end up calling the v1 shrink code path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't look like it. But how we create append vecs is different. Whatever the case, I updated the test to use the write cache completely. I just have to back this out once everyone can only use the write cache.
ee6236b
to
686c96a
Compare
* test_shrink_candidate_slots uses write cache (#29145) * add tests for collect_from_existing_account
* test_shrink_candidate_slots uses write cache (solana-labs#29145) * add tests for collect_from_existing_account
* test_shrink_candidate_slots uses write cache (solana-labs#29145) * add tests for collect_from_existing_account
Problem
migrating all tests to use write cache
Summary of Changes
Fixes #