[flink] Avoid redundant HTTP BLOB existence probes - #9181
Merged
JingsongLi merged 2 commits intoAug 13, 2026
Conversation
wwj6591812
marked this pull request as ready for review
August 12, 2026 00:03
JingsongLi
reviewed
Aug 12, 2026
Contributor
Author
|
@JingsongLi hi,please cc, thx |
Contributor
|
+1 |
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.
Purpose
#8219 introduced an HTTP existence preflight for
blob-write-null-on-missing-file. Its final design performs the check inFlinkRowWrapper, because the writer-side fallback considered at that time could not safely turn an open failure into NULL after record bytes had been emitted.#8412 later changed the BLOB writer to open the source before writing record bytes and added safe open-time classification for HTTP 404 and other fetch failures. The Flink preflight remained, so a materialized HTTP descriptor currently performs:
HEADGETGETrequired to copy the payload into a managed blob fileEach operation has its own 429/503 retry loop. This causes redundant requests for successful resources and can amplify load while an HTTP origin is throttling.
Changes
blob-descriptor-field/blob-view-fieldvalues, because those fields have no later writer fetch.The writer remains the single final classifier for materialized HTTP descriptors:
blob-write-null-on-missing-file=true.blob-write-null-on-fetch-failure=true.HttpClientUtils.exists, retry status codes, retry counts, timeout defaults, and the HTTP 416 zero-length-resource contract are unchanged.Request reduction
With both write-null options enabled:
This reduces the persistent 429/503 upper bound from 18 attempts to 6 with the current default of five additional retries, without adding configuration or changing final row semantics.
Implementation
FlinkSinkBuilderderives materialized BLOB positions from the table row type and excludesCoreOptions.blobInlineField().FlinkRowWrapper.FlinkRowWrapperskips only the redundant HTTP(S) preflight for those positions.Tests
Added unit and end-to-end coverage for:
Focused verification completed with 19 tests passing (13 wrapper tests and 6 HTTP BLOB integration cases), together with Checkstyle, Spotless, and
git diff --check.