You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: file-service write gaps are not reliably zero-filled #32777
Reproduced on main f70c37b16e2d2378dd6d48775df0f29c610dce6b and 4.2-dev 58a6fc5a034e33a3de767fea42e4eefb24143824.
Other Environment Information
CPU-only local test on Linux.
Actual Behavior
A file-service write with gaps between the specified entries can produce nonzero gap bytes. The result depends on the destination buffer used by the entry reader.
Expected Behavior
The IOEntry.Offset contract specifies that gaps in written data are zero-filled, including when the gap spans multiple reads.
Steps to Reproduce
Create a write vector with nonadjacent entry offsets and read the entries using a destination buffer that has already been filled. Check the bytes corresponding to the gaps. Repeat with different read buffer lengths.
Additional information
The issue is reproducible with a small deterministic reader test. It is independent of the object-writer compression optimization.
Activity
fix(fileservice): zero-fill gaps in write entries (#32778)
fix(fileservice): zero-fill gaps in write entries on 4.2 (#32779)