nodejs / nodejs/node

UV_USE_IO_URING does not update file handle position

未关闭
#55,113 10 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

confirmed-bug fs libuv linux
主要语言
JavaScript
星标
122k
派生
37.4k
平均合并
4 天 3 小时
30 天内合并 PR
272

描述

I suspect possible regression. Not sure what version but must have been recent:

await stream.promises.pipeline(src, fs.createWriteStream(dstPath))

Will not create a full sized file. I suspect that since createWriteStream doesn't explicitly set position during writes it expects the file handle position to be properly updated, which does not seem to be the case with URING.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,在启用 UV_USE_IO_URING 的情况下复现 stream.promises.pipeline 示例,并将生成的文件大小与预期大小进行比较。跟踪 fs.createWriteStream 如何在未指定显式位置的情况下执行写入,并验证文件句柄位置是否正确推进。完成标准是 pipeline 创建出完整文件,并保持预期的句柄位置。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, linux
领域
operating-systems
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。