curcur commented on a change in pull request #16531:
URL: https://github.com/apache/flink/pull/16531#discussion_r673733146
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/RuntimeEnvironment.java
##########
@@ -92,6 +94,10 @@
private final Task containingTask;
+ private MailboxExecutor mainMailboxExecutor;
Review comment:
I mark the `mainMailboxExecutor ` and `asyncOperationsThreadPool`
@Nullable in RuntimeEnvironment.
In `MockEnvironment`, both mailboxExecutor and asycnThreadPool are
initialized in the constructor, and I marked the parameter of the set method as
not nullable. So I did not set `mainMailboxExecutor ` and
`asyncOperationsThreadPool` as @Nullable in MockEnvironment, because no way
`mainMailboxExecutor ` and `asyncOperationsThreadPool` can be null in
`MockEnvironment`.
--
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]