Skip to content

Commit

Permalink
change waiting time for retry to 0 when retry time is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
teamconfx committed Sep 11, 2023
1 parent bf605c8 commit f2376b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public ZKDelegationTokenSecretManager(Configuration conf) {
ZK_DTSM_ZK_CONNECTION_TIMEOUT_DEFAULT)
)
.retryPolicy(
new RetryNTimes(numRetries, sessionT / numRetries));
new RetryNTimes(numRetries, numRetries == 0 ? 0 : sessionT / numRetries));
} catch (Exception ex) {
throw new RuntimeException("Could not Load ZK acls or auth: " + ex, ex);
}
Expand Down

0 comments on commit f2376b8

Please sign in to comment.