Server deletes snapshots during set_autobackup_quotas request #71

Closed
opened 2023-11-17 12:42:33 +02:00 by inex · 1 comment

Expected Behavior

When setting a new quota, server should start deleting snapshots in the background, and return the response to the client fast.

Actual Behavior

When setting a new quota that implied deleting ~80 snapshots, the server just hang up and the client timed out. Further requests were not processed in time.

Steps to Reproduce

  1. Set unlimited quotas
  2. Have dozens of snapshots created in one day
  3. Set a daily quota to 1
  4. ???
  5. Timed out, or the response received after too much time.

Context and notes

I think this is caused by this code

### Expected Behavior When setting a new quota, server should start deleting snapshots in the background, and return the response to the client fast. ### Actual Behavior When setting a new quota that implied deleting ~80 snapshots, the server just hang up and the client timed out. Further requests were not processed in time. ### Steps to Reproduce 1. Set unlimited quotas 2. Have dozens of snapshots created in one day 3. Set a daily quota to 1 4. ??? 5. Timed out, or the response received after too much time. ### Context and notes I think this is caused by [this code](https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/src/commit/113bcf4c29371a249425b90e8d872a84f234457d/selfprivacy_api/backup/__init__.py#L430)
inex added the
Bug
label 2023-11-17 12:42:33 +02:00
houkime was assigned by inex 2023-11-17 12:42:33 +02:00
inex changed title from Server deletes snapshots during set_autobackup_quotas requeste to Server deletes snapshots during set_autobackup_quotas request 2023-11-17 12:43:46 +02:00
Collaborator

Was addressed by f1a452009a

Was addressed by https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/commit/f1a452009a13d8e1f5720ac03d5a452b3be21176
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SelfPrivacy/selfprivacy-rest-api#71
There is no content yet.