Repository navigation
Conversation
4 of 5 tasks
Author
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
Add memory-bounded streaming reads and native byte ranges without changing the existing
OSSinterface.StreamingOSS.Open(ctx, key, *ByteRange) (io.ReadCloser, error)for Local FS, S3, Aliyun OSS, and Azure Blob.SupportsStreaming,OpenStream, and anErrStreamingNotSupportedsentinel so callers can explicitly detect capabilities; no implicit full-buffer fallback.Loadcompatible and explicitly buffered; close response bodies on success and failure. Azure retains resumable reads with SDK retry support and signed Range options.PR Stack
main<-feature/streaming-range).feature/streaming-range<-test/streaming-integration).Registered with GitHub native stacked pull requests as stack #34 using
gh stack link. This is the bottom PR; #32 is above it. Merge in stack order using GitHub stack controls. Enterprise caller integration is outside these PRs.Validation
go test -race -count=1 ./oss/...passes locally.Storage IntegrationGitHub Actions check on feat(oss): add streaming range reads with integration CI #32 passes.Real Azure live validation is not claimed: the attempted test-fixture upload was rejected by data-plane permissions. Emulator tests do not validate Azure RBAC or managed identity.
Compatibility
Existing
OSSimplementations and consumers remain source-compatible. Backends not implementingStreamingOSSexplicitly report no support via the helper. Callers must close returned readers and use streaming APIs rather thanLoadto avoid whole-object buffering.