-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
GC should skip over raw blocks #7160
Comments
How about adding three flags to the GC operation to determine how the GC should handle filestore and urlstore?
|
Is this work meant to be scheduled soon or would we rather wait to doing a larger GC revamp (possibly after raw-multihashes and pinning system changes)? I have tentatively tagged as P3. |
P3 seems right given that it won't help with performance in many cases. My main interest is actually allowing GC to progress even when filestore blocks are missing. |
The GC should avoid fetching raw blocks if the given CID's codec is raw. Is this right? If it's right. I would like to raise a PR for this. |
Exactly. PRs welcome! |
This idiot (@Stebalien <-- this one) made bad assumptions and filed an issue without actually verifying the issue. Apparently, we don't load raw blocks when garbage collecting. |
@balajijinnah thank you for implementing this, and again, I apologize for not verifying the issue first. |
Currently, when GC traverses the pin set, it loads all blocks, even raw blocks. This means:
We should simply avoid loading raw blocks when garbage collecting (or at least just check for existence instead of reading the block). This will:
The text was updated successfully, but these errors were encountered: