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

Delete draft that cannot ever be sent because of corrupted attachments #2055

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

LunarX
Copy link
Contributor

@LunarX LunarX commented Sep 27, 2024

Most of the sentry issues we receive regarding corrupted attachments come from drafts stored in DB that are retried everytime the worker is started. This bug was caused by the UploadStatus crash inside addDraftBreadcrumbs() for certain. I suspect that there might remain other reasons for the corrupted attachment bug because even with the UploadStatus' runCatching() I did reproduce the corrupted attachement bug once. Also the issue did exist before the addDraftBreadcrumbs() addition and hasn't yet been fixed.

The plan of this PR is to remove the drafts that will never be processed so they stop spamming Sentry. Once this goes live we can see the errors where the attachement is corrupted for another reason than UploadStatus and fix this as well

@LunarX LunarX added bug Something isn't working quick A pull request consisting of a few lines labels Sep 27, 2024
@LunarX LunarX self-assigned this Sep 27, 2024
Most of the sentry issues we receive regarding corrupted attachments come from drafts stored in DB that are retried everytime the worker is started. This bug was caused by the UploadStatus crash inside addDraftBreadcrumbs() for certain. I suspect that there might remain other reasons for the corrupted attachment bug because even with the UploadStatus' runCatching() I did reproduce the corrupted attachement bug once. Also the issue did exist before the addDraftBreadcrumbs() addition and hasn't yet been fixed.

The plan of this commit is to remove the drafts that will never be processed so they stop spamming Sentry. Once this goes live we can see the errors where the attachement is corrupted for another reason than UploadStatus and fix this as well
@LunarX LunarX force-pushed the investigate-corrupted-attachment branch from e7890f7 to a1db10a Compare September 27, 2024 07:16
Copy link

@tevincent tevincent merged commit be36a18 into master Sep 27, 2024
4 checks passed
@tevincent tevincent deleted the investigate-corrupted-attachment branch September 27, 2024 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working quick A pull request consisting of a few lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants