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

Handle IOV_MAX limit in RandomAccess #109340

Merged
merged 5 commits into from
Nov 8, 2024
Merged

Conversation

adamsitnik
Copy link
Member

We were not respecting IOV_MAX in pwritev and preadv exposed by RandomAccess. After writing test for it I've realized that the logic for handling the incomplete writes was also incomplete (please see the changes in managed layer).

fixes #108383 and adds a test for scenario described in #108322 , so I can backport #108380 to all supported versions.

@adamsitnik
Copy link
Member Author

/ba-g the failures are known, the DeadLetter was not caused by my changes

@adamsitnik adamsitnik merged commit ee68c2c into dotnet:main Nov 8, 2024
152 of 159 checks passed
adamsitnik added a commit to adamsitnik/runtime that referenced this pull request Nov 8, 2024
* add test for Int32 overflow for WriteGather in RandomAccess

* add failing test fore more than IOV_MAX buffers

* fix both the native and managed parts

---------

Co-authored-by: Adeel Mujahid <[email protected]>
Co-authored-by: Stephen Toub <[email protected]>
adamsitnik added a commit to adamsitnik/runtime that referenced this pull request Nov 8, 2024
* add test for Int32 overflow for WriteGather in RandomAccess

* add failing test fore more than IOV_MAX buffers

* fix both the native and managed parts

---------

Co-authored-by: Adeel Mujahid <[email protected]>
Co-authored-by: Stephen Toub <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RandomAccess.Write throws System.IO.IOException: Invalid argument when buffers count is greater than 1024
5 participants