-
Notifications
You must be signed in to change notification settings - Fork 463
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
pageserver: clean up stray VM pages #9927
Comments
This is already done during compactions, which removes relation blocks that don't belong to the shard. This also explains why these stray keys didn't cause compaction failures. neon/libs/pageserver_api/src/shard.rs Lines 173 to 190 in a68edad
|
@jcsp indicated in #9786 (comment) that it's probably too expensive to force a recompaction of all tenants, since it requires downloading all layers from S3. So we'll just do this best-effort during compactions. Let me know if I misinterpreted you @jcsp. |
Speaking from memory: the |
In #9855 and #9914, we saw that
ClearVmBits
updates may be applied on shards that aren't responsible for VM pages. This can lead to stray writes to these keys, which can be incomplete since the shards will not have seen WAL records for these pages. We should clean these keys up, to avoid them cropping up again later and causing problems.Bonus question: if we only apply
ClearVmBits
but not the page images on stray shards, why don't these error out during compaction when we presumably try to reconstruct the VM pages?The text was updated successfully, but these errors were encountered: