Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Reuse idle single-thread fetcher between split assignments - #30246

Draft
Appdev14 wants to merge 4 commits into
apache:masterfrom
Appdev14:fix/reuse-single-thread-fetcher-until-no-more-splits-40659
Draft

Appdev14 wants to merge 4 commits into
apache:masterfrom
Appdev14:fix/reuse-single-thread-fetcher-until-no-more-splits-40659

Conversation

@Appdev14

@Appdev14 Appdev14 commented Dec 2, 2026 •

Copy link
Copy Markdown

Summary

  • Pass the source reader's noMoreSplitsAssignment state into fetcher cleanup.
  • Preserve the existing cleanup behavior for other fetcher manager implementations.
  • Let SingleThreadFetcherManager retain its idle fetcher and SplitReader while more splits may still be assigned.
  • Shut the fetcher down through the existing cleanup path after the source announces that no more splits will be assigned.
  • Add a regression test that assigns two successive splits, verifies the same fetcher is reused, and verifies cleanup after the terminal signal.

Addresses FLINK-40659.

Design notes

SourceReaderBase already tracks the terminal no-more-splits event. The new overload defaults to the historical cleanup behavior, so multi-fetcher managers and existing callers keep their previous semantics. The single-thread manager uses the terminal signal to distinguish a temporary idle gap from end-of-input.

Validation

  • Read back and verified all four changed files on the PR branch.
  • Added a regression test for reuse across two split assignments and terminal cleanup.
  • The Flink Java test suite has not been run locally in this environment. CI and maintainer review are required before merge.
Was generative AI tooling used to co-author this PR?

No.

@flinkbot

flinkbot commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants