[ https://issues.apache.org/jira/browse/FLINK-29364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17624567#comment-17624567 ]
Lijie Wang commented on FLINK-29364: ------------------------------------ -> But the execution falls through to [Task.java#L780|https://github.com/apache/flink/blob/bccecc23067eb7f18e20bade814be73393401be5/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java#L780] and discards the root cause of canceling the source invokable without recording the actual reason. Is this really the root cause? I think the actual cause has been recorded when call {{{}transitionState{}}}([Task.java#L778|https://github.com/apache/flink/blob/bccecc23067eb7f18e20bade814be73393401be5/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java#L778] and [Task.java#L1090|https://github.com/apache/flink/blob/bccecc23067eb7f18e20bade814be73393401be5/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java#L1090]) > Root cause of Exceptions thrown in the SourceReader start() method gets > "swallowed". > ------------------------------------------------------------------------------------ > > Key: FLINK-29364 > URL: https://issues.apache.org/jira/browse/FLINK-29364 > Project: Flink > Issue Type: Bug > Components: Runtime / Task > Affects Versions: 1.15.2 > Reporter: Alexander Fedulov > Priority: Major > > If an exception is thrown in the {_}SourceReader{_}'s _start()_ method, its > root cause does not get captured. > The details are still available here: > [Task.java#L758|https://github.com/apache/flink/blob/bccecc23067eb7f18e20bade814be73393401be5/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java#L758] > But the execution falls through to > [Task.java#L780|https://github.com/apache/flink/blob/bccecc23067eb7f18e20bade814be73393401be5/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java#L780] > and discards the root cause of > canceling the source invokable without recording the actual reason. > > Hot to reproduce: > [DataGeneratorSourceITCase.java#L117|https://github.com/afedulov/flink/blob/3df7669fcc6ba08c5147195b80cc97ac1481ec8c/flink-tests/src/test/java/org/apache/flink/api/connector/source/lib/DataGeneratorSourceITCase.java#L117] > -- This message was sent by Atlassian Jira (v8.20.10#820010)