Skip to content

Revert "fs: fix close listener leak in FileHandle streams" - #65387

Open
MikeMcC399 wants to merge 1 commit into
nodejs:mainfrom
MikeMcC399:revert-64227
Open

Revert "fs: fix close listener leak in FileHandle streams"#65387
MikeMcC399 wants to merge 1 commit into
nodejs:mainfrom
MikeMcC399:revert-64227

Conversation

@MikeMcC399

@MikeMcC399 MikeMcC399 commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Refs: #64227
Refs: #64214

This reverts commit 8488e13.

@ronag wrote in #64227 (comment)

This is broken and should be reverted. Will unref the handle multiple times.

cc: @Y1D7NG @davidje13

This reverts commit 8488e13.

It was advised that the fix in question is broken since
it will unref the handle multiple times.

Signed-off-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
@nodejs-github-bot nodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Aug 18, 2026
@MikeMcC399
MikeMcC399 marked this pull request as ready for review August 18, 2026 16:00
@ovflowd ovflowd added the fast-track PRs that do not need to wait for 48 hours to land. label Aug 18, 2026
@ovflowd ovflowd removed the needs-ci PRs that need a full CI run. label Aug 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Fast-track has been requested by @ovflowd. Please 👍 to approve.

@ovflowd

ovflowd commented Aug 18, 2026

Copy link
Copy Markdown
Member

Removed need of CI, since we're reverting to previous code, this is known to be stable. Added fast-track.

@ronag

ronag commented Aug 18, 2026

Copy link
Copy Markdown
Member

Proper fix is to use eos/finished instead of 'close' listener

@panva panva added needs-ci PRs that need a full CI run. request-ci Add this label to start a Jenkins CI on a PR. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels Aug 18, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 18, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@panva

panva commented Aug 18, 2026

Copy link
Copy Markdown
Member

Removed need of CI, since we're reverting to previous code, this is known to be stable. Added fast-track.

The needs-ci label doesn't drive the need for CI. Removing it does absolutely nothing. CI is needed even for a revert, especially since other commits landed since that mean the codebase is not returning to a known state.

@codecov

codecov Bot commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.12%. Comparing base (cf30b2e) to head (5f3e792).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65387      +/-   ##
==========================================
+ Coverage   90.11%   90.12%   +0.01%     
==========================================
  Files         752      752              
  Lines      251861   251849      -12     
  Branches    47365    47363       -2     
==========================================
+ Hits       226955   226984      +29     
+ Misses      16238    16192      -46     
- Partials     8668     8673       +5     
Files with missing lines Coverage Δ
lib/internal/fs/streams.js 93.10% <100.00%> (-0.14%) ⬇️

... and 35 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. fast-track PRs that do not need to wait for 48 hours to land. fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants