XComp commented on code in PR #25027:
URL: https://github.com/apache/flink/pull/25027#discussion_r1682297518


##########
flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/DefaultJobManagerRunnerRegistry.java:
##########
@@ -97,6 +106,14 @@ public JobManagerRunner unregister(JobID jobId) {
         return this.jobManagerRunners.remove(jobId);
     }
 
+    public void setMainThreadExecutor(ComponentMainThreadExecutor executor) {
+        mainThreadExecutor = executor;
+    }
+
+    public ComponentMainThreadExecutor getMainThreadExecutor() {
+        return mainThreadExecutor;
+    }
+

Review Comment:
   hm, what about a 4th option where we implement the 
`DispatcherResourceCleanerFactory` using the Builder pattern? That would allow 
us to set the `JobManagerRunnerRegistry` after instantiating the 
`ResourceCleanerFactory` instance. 🤔 



-- 
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]

Reply via email to