gaborgsomogyi commented on code in PR #21499:
URL: https://github.com/apache/flink/pull/21499#discussion_r1046830220


##########
flink-runtime/src/test/java/org/apache/flink/runtime/security/token/KerberosDelegationTokenManagerITCase.java:
##########
@@ -175,21 +162,21 @@ void startTokensUpdate() {
                     };
 
             delegationTokenManager.startTokensUpdate();
+            ExceptionThrowingHadoopDelegationTokenProvider.throwInUsage = true;
             scheduledExecutor.triggerScheduledTasks();
             scheduler.triggerAll();
+            ExceptionThrowingHadoopDelegationTokenProvider.throwInUsage = 
false;
             scheduledExecutor.triggerScheduledTasks();
             scheduler.triggerAll();
             delegationTokenManager.stopTokensUpdate();
 
-            assertTrue(retryExceptionThrown.get());
             assertEquals(3, startTokensUpdateCallCount.get());

Review Comment:
   Here the expectation is still 3 calls:
   * Manual call in line 164
   * Trigger again by exception (retry)
   * Trigger again by normal re-schedule



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