The GitHub Actions job "Flink Connector Kafka CI" on 
flink-connector-kafka.git/fix-idle-reader-no-more-splits has succeeded.
Run started by GitHub user slachiewicz (triggered by slachiewicz).

Head commit for run:
0464ed6a5ac19bcb598d0e1974c56237a6bab94a / Sylwester Lachiewicz 
<[email protected]>
[FLINK-40362] Fix idle reader hang when no-more-splits precedes metadata update

An idle reader (subtask with no assigned splits) that receives the 
no-more-splits
signal before the MetadataUpdateEvent never forwards it to the sub-readers 
created
by that update: the re-notification in handleSourceEvents was guarded by
!pendingSplits.isEmpty(), which is false in exactly this case. The reader then
returns NOTHING_AVAILABLE indefinitely and a bounded job never finishes.

Re-deliver the no-more-splits signal after processing a metadata update 
regardless
of whether pending splits exist. notifyNoMoreSplits() is idempotent and only 
fires
when the signal has already arrived, so this adds no new cross-component 
traffic.

Verified: 
DynamicKafkaSourceReaderTest#testIdleReaderFinishesWhenNoMoreSplitsArrivesBeforeMetadata
-> fails on main (NOTHING_AVAILABLE), passes with this change.

Generated-by: Claude Fable 5

Report URL: 
https://github.com/apache/flink-connector-kafka/actions/runs/33338164766

With regards,
GitHub Actions via GitBox

Reply via email to