This repository was archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
OOM when importing large directoriesΒ #1736
Copy link
Copy link
Closed
Labels
P2Medium: Good to have, but can wait until someone steps upMedium: Good to have, but can wait until someone steps upexp/wizardExtensive knowledge (implications, ramifications) requiredExtensive knowledge (implications, ramifications) requiredkind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)kind/resolved-in-heliastatus/blockedUnable to be worked further until needs are metUnable to be worked further until needs are metstatus/deferredConscious decision to pause or backlogConscious decision to pause or backlog
Description
This call to get-folder-size can cause OOMs on large directories as the get-folder-size module keeps a list of all the files it's seen to make sure it doesn't double-count symlinked files (for example).
We only calculate the directory size to show a progress indicator - I propose we switch to an indeterminate indicator if the number of files being imported is unreasonable (say, 10k).
What do you think?
m00nwtchr
Metadata
Metadata
Assignees
Labels
P2Medium: Good to have, but can wait until someone steps upMedium: Good to have, but can wait until someone steps upexp/wizardExtensive knowledge (implications, ramifications) requiredExtensive knowledge (implications, ramifications) requiredkind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)kind/resolved-in-heliastatus/blockedUnable to be worked further until needs are metUnable to be worked further until needs are metstatus/deferredConscious decision to pause or backlogConscious decision to pause or backlog