Skip to content
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

fix: Limit concurrent open files during lsstream #285

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

oikumene
Copy link
Contributor

During 'npm cache verify', currently all the cache files are open at the same time, which will bring EMFILE error in an environment that limit max open files.
This change limits the concurrent open files in garbageCollect() with p-map module to avoid this problem.
I first sent this pull request to npm/cli and it was merged, but realized that the original was in this repository.

References

npm/cli#7631
npm/cli#4783

@oikumene oikumene requested a review from a team as a code owner July 11, 2024 06:35
wraithgar
wraithgar previously approved these changes Jul 11, 2024
@wraithgar wraithgar changed the title Limit concurrent open files during 'npm cache verify' fix: Limit concurrent open files during lsstream Jul 11, 2024
@wraithgar
Copy link
Member

Sorry I didn't see that your other PR was in node_modules. It was a busy day.

You'll need to fix linting before this can land.

@wraithgar wraithgar merged commit 5f2166a into npm:main Jul 11, 2024
17 checks passed
@github-actions github-actions bot mentioned this pull request Jul 11, 2024
wraithgar pushed a commit that referenced this pull request Jul 11, 2024
🤖 I have created a release *beep* *boop*
---


## [18.0.4](v18.0.3...v18.0.4)
(2024-07-11)

### Bug Fixes

*
[`5f2166a`](5f2166a)
[#285](#285) Limit concurrent open
files during `lsstream` (#285) (@oikumene)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@binhle113

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants