[FLINK-39530][s3] Replace S3 compatible auto-detection with explicit chunked-encoding and checksum-validation config options#28010
Merged
Conversation
…chunked-encoding and checksum-validation config options
Contributor
Author
Collaborator
Samrat002
approved these changes
Apr 23, 2026
Contributor
Samrat002
left a comment
There was a problem hiding this comment.
Considering CI is green
RocMarshal
approved these changes
Apr 24, 2026
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 is a backport of #28009.
The native S3 connector previously treated any custom
s3.endpointas an indicator of an S3-compatible server, silently enabling path-style access and disabling chunked encoding and checksum validation. This caused legitimate AWS regional endpoints (e.g.s3.us-west-2.amazonaws.com) to be misconfigured with no workaround available.This PR removes the auto-detection entirely and introduces two explicit config options:
s3.chunked-encoding.enabled(default: true)s3.checksum-validation.enabled(default: true)The existing s3.path-style-access option already served as an explicit knob. Users targeting S3-compatible servers (MinIO, Ceph, etc.) now configure all three flags explicitly.
Additionally,
S3ClientProvidernow stores and exposes all directly configurable flags (pathStyleAccess,chunkedEncoding,checksumValidation,maxConnections,maxRetries) for testability, and the test suite was refactored to assert actual config values rather thanfs != null.Brief change log
s3.chunked-encoding.enabled(default: true)s3.checksum-validation.enabled(default: true)Verifying this change
Existing and newly added tests.
Does this pull request potentially affect one of the following parts:
@Public(Evolving): noDocumentation
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code