UV_USE_IO_URING does not update file handle position
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 122k
- Forks
- 37.3k
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 283
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the stream.promises.pipeline example with UV_USE_IO_URING enabled and compare the resulting file size with the expected size. Trace how fs.createWriteStream performs writes without an explicit position and verify whether the file handle position advances correctly. Done means the pipeline creates a complete file and maintains the expected handle position.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, linux
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100