Skip to content

[Bug]: file-service write gaps are not reliably zero-filled #32777

Closed

Description

@XuPeng-SH

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main and 4.2-dev

Commit ID

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.

Metadata

Metadata

Assignees

Labels

kind/bugneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions