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

feat: shed: fix blockstore prune #11197

Merged
merged 1 commit into from
Oct 27, 2023
Merged

feat: shed: fix blockstore prune #11197

merged 1 commit into from
Oct 27, 2023

Conversation

Stebalien
Copy link
Member

Proposed Changes

  1. Implement a pass-through for garbage collection on the idstore.
  2. Fix the lotus-shed state-prune command.

NOTE: the new performance of running a full prune will be significantly less as this version doesn't batch. However, it should now actually work and most users will be using the splitstore anyways.

Checklist

Before you mark the PR ready for review, please make sure that:

  • Commits have a clear commit message.
  • x ] PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, test
    • area, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps
  • Tests exist for new functionality or change in behavior
  • CI is green

@Stebalien Stebalien requested a review from a team as a code owner August 22, 2023 21:48
@Stebalien Stebalien force-pushed the steb/fix-shed-prune branch from 023c164 to 484be6d Compare August 22, 2023 21:58
@@ -225,12 +214,12 @@ var stateTreePruneCmd = &cli.Command{
var deleteCount int
var goodHits int
for k := range keys {
if goodSet.HasRaw(k.Bytes()) {
if goodSet.Has(k) {
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure why we did used HasRaw before as this way should bee cheaper.

1. Implement a pass-through for garbage collection on the idstore.
2. Fix the `lotus-shed state-prune` command.

NOTE: the new performance of running a full prune will be significantly
less as this version doesn't batch. However, it should now actually
_work_ and most users will be using the splitstore anyways.
@Stebalien Stebalien merged commit 87801b5 into master Oct 27, 2023
@Stebalien Stebalien deleted the steb/fix-shed-prune branch October 27, 2023 18:33
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