nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.92k stars 4.01k forks source link

[Bug]: Deleting multiple big folders results in possibly missing folders from trash bin #44414

Open mgallien opened 6 months ago

mgallien commented 6 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

Deleting at the same time multiple big folders (with many files inside) may result in missing folders in trashbin.

Steps to reproduce

  1. Create folder1, folder2 and folder3
  2. Add 10 000 files inside each folder (for i in {1..10000}; do touch test${i}.txt; done)
  3. Delete the 3 folders
  4. Check what is in the trashbin

Expected behavior

folder1, folder2 and folder3 visible in trashbin

Installation method

None

Nextcloud Server version

27

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

mgallien commented 6 months ago

@sorbaugh

susnux commented 6 months ago

Is there a quota set? Because trashbin is cleared when it exceeds 50% of the quota the content is removed.

mgallien commented 6 months ago

Is there a quota set? Because trashbin is cleared when it exceeds 50% of the quota the content is removed.

no it is related to the number of files, not their storage size