Skip to content

Navigation Menu

Sign in
Sign up

Fix logical-end seeks in InStream - #2707

Draft
mkuchenbecker wants to merge 1 commit into
apache:main from
mkuchenbecker:mkuchenbecker/fix-instream-logical-end
Draft

Fix logical-end seeks in InStream #2707
mkuchenbecker wants to merge 1 commit into
apache:main from
mkuchenbecker:mkuchenbecker/fix-instream-logical-end

Conversation

@mkuchenbecker

@mkuchenbecker mkuchenbecker commented Aug 17, 2026

Copy link
Copy Markdown

What changes were proposed in this pull request?

Update InStream.UncompressedStream.seek(long) to treat the stream's exact logical end as a valid seek position when the shared disk range list contains later ranges for other streams. Add a regression test covering a logical-end seek followed by an unrelated disk range.

Why are the changes needed?

A stream may end at a disk range that is not the final node in the shared range list. The existing logic rejects that range end or selects a later range, although seeking to length is a valid EOF position for the current stream.

How was this patch tested?

JAVA_HOME=$(/usr/libexec/java_home -v 21) ./mvnw -pl core -am -Dtest=TestInStream -Dsurefire.failIfNoSpecifiedTests=false test

Was this patch authored or co-authored using generative AI tooling?

Generated-by: GitHub Copilot CLI 1.0.80

Treat a stream's exact logical end as a valid seek target even when the shared disk range list contains data for later streams. This prevents an EOF seek from selecting an unrelated range or failing as out of bounds.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /