Skip to content
This repository was archived by the owner on Aug 31, 2025. It is now read-only.
This repository was archived by the owner on Aug 31, 2025. It is now read-only.

Deleting users with a lot of records can lead to orphans #1674

Description

@pixeldesu

Steps to reproduce the problem

  1. A (large) user deletes themselves

Expected behaviour

Nothing impacts other users.

Actual behaviour

Some user profiles and home/timeline pages break.

Detailed description

This happens because not all relations seem to be deleted properly. Prevalent with users that have a lot of records on them.

I'm not exactly sure what's the reason for this, we don't have any error logs or failures from Sidekiq and the likes that back up that the async destruction jobs outright fail or something (but we should maybe check that).

I assume that something with our relation chains is broken. I don't really find documentation on that, but maybe we need to adjust dependent: destroys down the line to also be async to not cause hickups or something like that.

Specifications

Retrospring 2024.0310.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues containing bug reportscriticalCritical topics that should be handled as soon as possible

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions