Appdev14 opened a new pull request, #30246:
URL: https://github.com/apache/flink/pull/30246

   ## 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](https://issues.apache.org/jira/browse/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?
   - [X] Yes (ChatGPT assisted with issue analysis, implementation and test 
drafting).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to