You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Idea storage atomic write retries on PermissionError can hang #142
Idea storage atomic write retries on PermissionError can hang
Severity: Medium File:backend/app/storage/idea_storage.py:80
The _write_json_atomic function retries os.replace() up to 5 times on PermissionError with increasing delays. If the permission issue is permanent (e.g., read-only filesystem, incorrect ownership), the function sleeps for up to 0.75 seconds total before raising the error.
In environments with persistent permission issues (e.g., Docker volumes, network mounts), every write operation adds 0.75 seconds of latency. The retry logic assumes transient locks, not permanent permission errors.
Activity