-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Too many open files #260
Comments
Thanks for the report @KevinWuWon. I haven't seen an issue like this before.
This comment rust-lang/git2-rs#626 (comment) suggests that resources aren't freed until the owning git-branchless/src/git/tree.rs Line 76 in f680141
git2::TreeEntry s to be freed after returning from each function call, but that might not be the case.
|
macOS 11.6.2
The
200k commits, 385k files
No, there are 110 files descendent from the directory it touches.
No, 6 levels deep. I restarted my computer and the problem went away so I suspect it's a resource leak. The computer had been on for a few weeks. |
I'm still getting "Too many open files" even after a system restart. This time on
This file is not particularly big, nor is it in a directory with many files. |
How many branches and references do you have in your repository? You can try running this and report the results:
After that, can you try running I don't have a hypothesis as to what's opening all the files. I think it's 50/50 odds between that the commit-rewrite process itself opens too many files at once or that some other operation prior to that opens too many files and holds onto them. |
The But someone suggested I type |
I think |
Did you figure out which files are opened? Is it refs or loose objects or something else? I suppose strace could help you at least figure that part out. |
Oh, regular |
Description of the bug
I got the following while trying to do a move. Tried it a few times and got the same error again. Ended up using
git rebase
instead.Expected behavior
No response
Actual behavior
No response
Version of
git-branchless
02bc9b5
Version of
git
git version 2.34.0
Version of
rustc
rustc 1.56.1 (59eed8a2a 2021-11-01)
The text was updated successfully, but these errors were encountered: