KarmaGYZ commented on a change in pull request #14561:
URL: https://github.com/apache/flink/pull/14561#discussion_r553153813



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/ResourceManager.java
##########
@@ -464,7 +464,11 @@ private void stopResourceManagerServices() throws 
Exception {
                 taskExecutors.get(taskManagerResourceId);
 
         if 
(workerTypeWorkerRegistration.getInstanceID().equals(taskManagerRegistrationId))
 {
-            if (slotManager.registerTaskManager(workerTypeWorkerRegistration, 
slotReport)) {
+            if (slotManager.registerTaskManager(
+                    workerTypeWorkerRegistration,
+                    slotReport,
+                    workerTypeWorkerRegistration.getTotalResourceProfile(),
+                    
workerTypeWorkerRegistration.getDefaultSlotResourceProfile())) {

Review comment:
       After an offline discussion, we find it may need a refactor with a 
larger scope:
   - The current inheritance relationship between `WorkerRegistration ` and 
`TaskExecutorConnection` is not reasonable.
   - The `TaskManagerRegisteration` also needs to be renamed.
   We decided to have some more in-depth discussions and move it out of the 
scope of this PR.




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to