-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[keyserver] Remove holders in upload deleters
Summary: Address [[ https://linear.app/comm/issue/ENG-9352/delete-holder-when-deleting-upload | ENG-9352 ]]. Before calling `DELETE FROM uploads`, we need to select the `extra` column first and remove blob holders if present in the column JSON. Depends on D13511 Test Plan: Used local Blob Service for testing. For deleteUpload, used the `delete_upload` keyserver endpoint (easy way is canceling media message on web, with blob uploads enabled). Called the endpoint and verified that blob associated with the upload was deleted from DDB. For deleting unassigned uploads: Manually modified MariaDB by setting containers to null and age to be older than 24h. Modified the cron job call to instead run during keyserver startup. Verified that holders were removed. Reviewers: tomek, ashoat Reviewed By: ashoat Differential Revision: https://phab.comm.dev/D13512
- Loading branch information
Showing
2 changed files
with
46 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters