Drop deletes from actors that don't exist anymore #404
Loading…
Reference in a new issue
No description provided.
Delete branch "ignaloidas:drop-extra-deletes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Mastodon sends delete activities for every single note of an actor after
they are deleted, even though it usually sends a delete activity for the
actor itself from the start. These messages fail processing since we
can't verify the signature anymore (we have deleted the actor together
with their notes and keys with the delete activity for the actor itself,
and it's obviously not possible to look it up anymore), and stick around
in the inbox queue for all of the retries, which can take quite a while.
But since we can't have anything from actors that we can't
resolve, we can safely ignore the deletion request from them.
Changelog: Fixed
I've been having over 600 items in my inbox queue delayed for quite a while and it's been causing memory issues. The number has been steadily decreasing since I applied this.
Do you by chance still have the stack trace from one of those errors handy? I think there is a deeper issue since when I checked my inbox queue just now there are also items where it retries things from blocked instances.
I don't seem to have it written down anywhere, though I'm also seeing a bunch of delete activities still failing with this trace, and I'm not sure why my fix doesn't handle them.
I think this change wouldn't get to the issue of the real problem which I've tried to fix with commit
37658f5162
. With that I don't think this change shouldn't be necessary any more.I updated my server to that commit ant it indeed fixed the problem.
Pull request closed