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: gc: Mark snap sector key files for removal #403

Merged
merged 9 commits into from
Feb 6, 2025
Merged

Conversation

magik6k
Copy link
Collaborator

@magik6k magik6k commented Feb 4, 2025

This PR adds additional marking logic to GC Mark task for cleaning up non-needed post-snap sector key files (original CC sector files):

Sectors where:

  • sectors_meta table indicates a snap sector (orig_unsealed_cid != cur_sealed_cid)
  • On-chain sector info is not null (1.5 finality ago)
  • On-chain sector info has a non-nil SectorKeyCID indicating the sector is a snap sector
  • On disk, the update and update-cache files are present for the sector, indicating that PoSt logic won't use the sealed file
  • Have the sealed file on disk

Will have the sealed file (only) marked for GC

@magik6k magik6k marked this pull request as ready for review February 5, 2025 12:14
@magik6k magik6k requested a review from LexLuthr February 5, 2025 12:17
Copy link
Contributor

@LexLuthr LexLuthr left a comment

Choose a reason for hiding this comment

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

Looks good.

@magik6k magik6k merged commit b478564 into main Feb 6, 2025
31 checks passed
@magik6k magik6k deleted the feat/snap-gc branch February 6, 2025 08:21
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