StephanEwen commented on a change in pull request #10483:
[FLINK-15099][runtime] (FLIP-27) Add Operator Coordinators and Events
URL: https://github.com/apache/flink/pull/10483#discussion_r355182049
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutor.java
##########
@@ -951,6 +963,33 @@ public void disconnectResourceManager(Exception cause) {
}
}
+ //
----------------------------------------------------------------------
+ // Other RPCs
+ //
----------------------------------------------------------------------
+
+ @Override
+ public CompletableFuture<Acknowledge> sendOperatorEvent(
+ ExecutionAttemptID executionAttemptID,
+ OperatorID operatorId,
+ SerializedValue<OperatorEvent> evt) {
+
+ log.debug("Operator event for {} - {}", executionAttemptID,
operatorId);
+
+ final Task task = taskSlotTable.getTask(executionAttemptID);
+ if (task == null) {
+ return FutureUtils.completedExceptionally(new
FlinkException("Task not running on TaskManager"));
Review comment:
I think the `TaskNotRunningException` is so far a master-side exception. Its
not used at all on the TaskExecutor side. Let me see if it makes sense to
introduce it there.
----------------------------------------------------------------
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]
With regards,
Apache Git Services