Skip to content

train 1108204341: #2610 (CI only) - #2613

Closed
ashhart wants to merge 3 commits into
mainfrom
lead/train-1108204341
Closed

ashhart wants to merge 3 commits into
mainfrom
lead/train-1108204341

Conversation

@ashhart

@ashhart ashhart commented Nov 8, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #2610 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.

Any reader's failure used to reach the loaders as ReadFailed, so a
shard that ends inside a tensor it reads, or a source that is gone,
could not be told apart. readAll now returns the first reader's own
error (EndOfFile, FileNotFound, or direct_io's ReadFailed), through
Gather.read and Pair.wait alike, to checkpoint_direct's loaders and
Flash Next's experts, which pass it on with try.

Tests: a file cut inside the last of four pieces, on and off a 4 KiB
boundary, gives direct_io's own error for that read; a removed file
gives FileNotFound; on Linux, checkpoint_direct stops the layer a cut
lands in with EndOfFile after reading the layer before it.
Engram extents are 512-byte aligned. On a disk whose direct reads need
4 KiB (or a file system that takes the O_DIRECT open but not the read),
every extent's read failed with EINVAL, so good rows gave
EngramReadFailed in every reader mode; nothing fell back as direct_io
does. openTable now reads one sector at a sector first: refused with
EINVAL, it clears O_DIRECT on the shard's descriptor and the table is
buffered, as on a file system without O_DIRECT. The serial, threaded,
io_uring and AIO readers all read that descriptor, so the read path is
unchanged; a 512-byte disk keeps its direct reads and extents.

Test (Linux): a fake disk refusing direct reads off 4 KiB, or off 512
bytes, or none, under every reader mode: the same row bytes and the
same extents each time, direct except on the 4 KiB disk, which refused
only the check at open.
@ashhart

ashhart commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Landed: #2610 as main 52427c0. This PR only carried their CI.

@ashhart ashhart closed this Nov 8, 2026
@ashhart
ashhart deleted the lead/train-1108204341 branch November 8, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant