StephanEwen commented on a change in pull request #15557:
URL: https://github.com/apache/flink/pull/15557#discussion_r613160504
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/source/coordinator/SourceCoordinatorContext.java
##########
@@ -147,16 +146,8 @@ public MetricGroup metricGroup() {
public void sendEventToSourceReader(int subtaskId, SourceEvent event) {
callInCoordinatorThread(
() -> {
- try {
- operatorCoordinatorContext.sendEvent(
- new SourceEventWrapper(event), subtaskId);
- return null;
- } catch (TaskNotRunningException e) {
- throw new FlinkRuntimeException(
- String.format(
- "Failed to send event %s to subtask
%d", event, subtaskId),
- e);
- }
+ operatorCoordinatorContext.sendEvent(new
SourceEventWrapper(event), subtaskId);
Review comment:
Indeed, but that is by design, see comment in the main PR thread.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]