[DISCUSS][FLIP-597][filesystem] Add common object storage stream abstractions#28547
Draft
Izeren wants to merge 1 commit into
Draft
[DISCUSS][FLIP-597][filesystem] Add common object storage stream abstractions#28547Izeren wants to merge 1 commit into
Izeren wants to merge 1 commit into
Conversation
Generated by: Claude Code
Collaborator
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.
What is the purpose of the change
This PR provides a reference implementation of FLIP-597 to accompany the FLIP discussion on the mailing list: https://lists.apache.org/thread/npjcpx3o73pg7b4p1hg073sqnj49b66j
FLIP-597 is the umbrella FLIP for supporting Hadoop-less filesystems within Flink that rely solely on cloud SDKs. This PR adds the common, cloud-agnostic stream abstractions defined in the FLIP, placed in
flink-coreso they are written, tested, and maintained once. These abstractions are then shared by cloud-specific filesystem implementations (AWS S3, Azure ABFS, GCS).The purpose of sharing this code early is to:
All new types are annotated
@Internaland@Experimental. No existing public APIs are modified.Brief change log
ReadContextandWriteContext— immutable context descriptors for read/write operationsInputStreamOpenerandOutputStreamOpener— cloud-agnostic functional interfaces for opening streamsInputStreamExtensionandBufferingInputStreamExtension— extension point for customizing stream opening (e.g., buffering, decryption, compression)RawAndWrappedInputStreams— value class pairing raw and wrapped streams for lifecycle managementObjectStorageInputStream— thread-safeFSDataInputStreamwith lazy initialization, seek optimization (read-and-discard vs close-and-reopen), and composable extensionsObjectStorageOutputStream— thread-safeFSDataOutputStreamwith commit-on-close semanticsorg.apache.flink.core.fsalongside existingFileSystemandFSDataInputStreamVerifying this change
Does this pull request potentially affect one of the following parts:
@Public(Evolving): no (all@Internal @Experimental)Documentation
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code