You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-42090][3.2] Introduce sasl retry count in RetryingBlockTransferor
### What changes were proposed in this pull request? This PR introduces sasl retry count in RetryingBlockTransferor.
### Why are the changes needed?
Previously a boolean variable, saslTimeoutSeen, was used. However, the boolean variable wouldn't cover the following scenario:
1. SaslTimeoutException
2. IOException
3. SaslTimeoutException
4. IOException
Even though IOException at #2 is retried (resulting in increment of retryCount), the retryCount would be cleared at step #4. Since the intention of saslTimeoutSeen is to undo the increment due to retrying SaslTimeoutException, we should keep a counter for SaslTimeoutException retries and subtract the value of this counter from retryCount.
### Does this PR introduce _any_ user-facing change? No
### How was this patch tested?
New test is added, courtesy of Mridul.
Closes#39611 from tedyu/sasl-cnt.
Authored-by: Ted Yu <yuzhihonggmail.com>
Signed-off-by: Mridul Muralidharan <mridul<at>gmail.com>
Closes#39710 from akpatnam25/SPARK-42090-backport-3.2.
Authored-by: Ted Yu <yuzhihong@gmail.com>
Signed-off-by: Mridul Muralidharan <mridul<at>gmail.com>
0 commit comments