Repository navigation
perf(spark): avoid redundant metadata HEADs when opening Hadoop streams - #11368
Merged
robert3005 merged 2 commits intoNov 10, 2026
Merged
Conversation
Signed-off-by: Christopher Wirt <[email protected]>
robert3005
approved these changes
Nov 9, 2026
robert3005
left a comment
Contributor
There was a problem hiding this comment.
I had a pr for this today as well
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Open pooled Hadoop streams with the known file length so S3A versions that honor the hint can avoid redundant metadata HEAD requests. Ports the Hadoop-readable changes from QC #106 onto upstream
developat2e1b05b84.Changes
fs.openFile()with optional known-length and random-read hints; other filesystems may ignore them.The improvement depends on Hadoop support. Spark 3.5's Hadoop 3.3.4 ignores the hints; compatibility is retained. The random-read hint takes precedence over a cluster-wide S3A read-policy setting on supporting Hadoop versions.
Validation
Maintainer action: add
changelog/performance; the PR author does not have permission to assign upstream labels.Inspected the two-file port. No tests, builds, lint or formatting commands were run on this port. QC #106 records targeted Hadoop-readable tests across Spark 3.5/4.0 and both Spark 3.5 Scala variants. Live post-fix S3A request counts were not measured.
The unrelated list-view writer normalization bundled in QC #106 is excluded; this PR has no Rust or
vortex-layoutchanges.AI assistance
AI tools assisted with this port and its descriptions. Christopher Wirt is the responsible contributor.