-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Remove deletion of TransactionStatusIndex entries #34023
Remove deletion of TransactionStatusIndex entries #34023
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #34023 +/- ##
=======================================
Coverage 81.9% 81.9%
=======================================
Files 819 819
Lines 219350 219347 -3
=======================================
+ Hits 179698 179754 +56
+ Misses 39652 39593 -59 |
Hmm, I'm now doubting that I fully understand the problem Brooks encountered after spelling out the calls. My current understanding of what is happening with the tip of master:
But, in 3. above, So, as mentioned, it is unclear to me how Brook's blockstore got into the state it was. Will probably revisit Monday once I've had some time to think on it. Regardless, I don't think we should be deleting these entries anywhere so this PR is likely good to go |
These entries are legacy code at this point; however, older release branches require these entries to be present. Also, while it would be nice to clean up these entries immediately, they only occupy a small amount of space so having them linger a little longer isn't a big deal.
e9a0c1d
to
beb3aa7
Compare
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.
I rebased in order to re-run CI with the latest incase something might have changed
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.
Sorry for the delay!
Problem
These entries are legacy code at this point; however, older release branches (v1.16 and v1.17) require these entries to be present. Also, while it would be nice to clean up these entries immediately, they only occupy a small amount of space so having them linger a little longer isn't a big deal.
Summary of Changes
Hold off on deleting these entries until a later point in time.
Funny enough, we've had some churn here:
TransactionStatusIndex
entries stopped getting populated at startupTransactionStatusIndex
entries are explicitly deleted during blockstore cleaning viaBlockstore::maybe_cleanup_highest_primary_index_slot()
TransactionStatusIndex
entries are once again populated at startup.This issue was reported in Discord by Brooks who was trying to run
v1.17/v1.16 solana-ledger-tool
on a ledger that had been created with master.