Bug 473304

Summary: Convenience indexes should avoid filling disk
Product: [Frameworks and Libraries] Akonadi Reporter: hack
Component: serverAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: carl
Priority: NOR    
Version: 5.23.3   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

Description hack 2023-08-12 00:48:04 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Disable/remove calendar/contacts (/mail) accounts, or Clear akonadi indexes in `~/.local/share/akonadi/`.
2. Make large files so there is <500M left on disk
3. Re-enable or re-add the accounts.

OBSERVED RESULT
Akonadi gladly fills the rest of the space and grinds the system to a halt.

EXPECTED RESULT
Akonadi declines to fill the disk, or removes some of its indexes, while notifying the user about nearly full disk space: in its own logs, possibly an announcement of its own, and possibly in a shared log through the disk space monitoring applciations.

SOFTWARE/OS VERSIONS
Windows: -
macOS: -
Linux/KDE Plasma: yes
(available in About System)
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION