Savonitar commented on code in PR #28639:
URL: https://github.com/apache/flink/pull/28639#discussion_r4106673188


##########
flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/ResourceManager.java:
##########
@@ -427,6 +430,22 @@ public CompletableFuture<RegistrationResponse> 
registerJobMaster(
                             jobMasterIdFuture,
                             (JobMasterGateway jobMasterGateway, JobMasterId 
leadingJobMasterId) -> {
                                 if (Objects.equals(leadingJobMasterId, 
jobMasterId)) {
+                                    // Register with the delegation token 
manager first, so a
+                                    // provider failure rejects the 
registration and the job does
+                                    // not start without the tokens it 
requires. LinkageError is
+                                    // caught so a plugin classpath failure is 
reported the same
+                                    // way.
+                                    try {
+                                        
delegationTokenManager.registerJob(jobId, jobConfiguration);

Review Comment:
   Thanks for clarifying. The test in 8b25efa085e also checks the leader 
retriever’s lifecycle: start() is called exactly once and stop() is never 
called before teardown. This verifies that the retry reuses the existing leader 
monitoring without removing and recreating it. The successful connection and 
resource declaration then confirm that the resulting registration is usable.



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