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

Purge expired BlockHeight data from blockstore #17634

Merged
merged 2 commits into from
Jun 1, 2021

Conversation

ryoqun
Copy link
Contributor

@ryoqun ryoqun commented Jun 1, 2021

Problem

block_height cf's data is never removed.

Fortunately, storage impact should be very small.

Summary of Changes

Purge it correctly and add reminder comment to avoid future re-occurrence.

follow up to #17523

@ryoqun ryoqun requested a review from CriesofCarrots June 1, 2021 16:10
CriesofCarrots
CriesofCarrots previously approved these changes Jun 1, 2021
Copy link
Contributor

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

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

Oof, thank you!

@ryoqun ryoqun added the automerge Merge this Pull Request automatically once CI passes label Jun 1, 2021
@mergify mergify bot removed the automerge Merge this Pull Request automatically once CI passes label Jun 1, 2021
@mergify
Copy link
Contributor

mergify bot commented Jun 1, 2021

automerge label removed due to a CI failure

@CriesofCarrots
Copy link
Contributor

Actually, we probably need to add it to compact_storage() as well for v1.6, don't we?

@ryoqun
Copy link
Contributor Author

ryoqun commented Jun 1, 2021

Actually, we probably need to add it to compact_storage() as well for v1.6, don't we?

yeah. lol. I was rushing too. xD

@ryoqun ryoqun added the automerge Merge this Pull Request automatically once CI passes label Jun 1, 2021
@mergify mergify bot dismissed CriesofCarrots’s stale review June 1, 2021 18:26

Pull request has been modified.

@ryoqun
Copy link
Contributor Author

ryoqun commented Jun 1, 2021

@CriesofCarrots (I'm going to bed..) could you monitor this while bots back-port to v1.6 & v1.7?

@CriesofCarrots
Copy link
Contributor

@CriesofCarrots (I'm going to bed..) could you monitor this while bots back-port to v1.6 & v1.7?

💯 I'll handle @ryoqun

@mergify mergify bot merged commit 96cdbfd into solana-labs:master Jun 1, 2021
mergify bot pushed a commit that referenced this pull request Jun 1, 2021
* Purge expired BlockHeight data from blockstore

* Also call compact_storage and add comment....

(cherry picked from commit 96cdbfd)

# Conflicts:
#	ledger/src/blockstore_db.rs
mergify bot pushed a commit that referenced this pull request Jun 1, 2021
* Purge expired BlockHeight data from blockstore

* Also call compact_storage and add comment....

(cherry picked from commit 96cdbfd)

# Conflicts:
#	ledger/src/blockstore_db.rs
mergify bot added a commit that referenced this pull request Jun 2, 2021
)

* Purge expired BlockHeight data from blockstore (#17634)

* Purge expired BlockHeight data from blockstore

* Also call compact_storage and add comment....

(cherry picked from commit 96cdbfd)

# Conflicts:
#	ledger/src/blockstore_db.rs

* Fix conflict

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
mergify bot added a commit that referenced this pull request Jun 2, 2021
)

* Purge expired BlockHeight data from blockstore (#17634)

* Purge expired BlockHeight data from blockstore

* Also call compact_storage and add comment....

(cherry picked from commit 96cdbfd)

# Conflicts:
#	ledger/src/blockstore_db.rs

* Fix conflict

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
This was referenced 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.

2 participants