tillrohrmann commented on a change in pull request #15105:
URL: https://github.com/apache/flink/pull/15105#discussion_r591591159



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/registration/RetryingRegistration.java
##########
@@ -223,16 +229,22 @@ private void register(final G gateway, final int attempt, 
final long timeoutMill
                                     if (result instanceof 
RegistrationResponse.Success) {
                                         // registration successful!
                                         S success = (S) result;
-                                        
completionFuture.complete(Tuple2.of(gateway, success));
+                                        completionFuture.complete(
+                                                
RetryingRegistrationResult.success(
+                                                        gateway, success));
+                                    } else if (result instanceof 
RegistrationResponse.Rejection) {
+                                        R rejection = (R) result;
+                                        completionFuture.complete(
+                                                
RetryingRegistrationResult.rejection(rejection));

Review comment:
       I will add a debug log statement.




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


Reply via email to