mridulm commented on code in PR #39611:
URL: https://github.com/apache/spark/pull/39611#discussion_r1071699101


##########
common/network-shuffle/src/main/java/org/apache/spark/network/shuffle/RetryingBlockTransferor.java:
##########
@@ -236,9 +251,11 @@ private void handleBlockTransferSuccess(String blockId, 
ManagedBuffer data) {
         if (this == currentListener && outstandingBlocksIds.contains(blockId)) 
{
           outstandingBlocksIds.remove(blockId);
           shouldForwardSuccess = true;
-          if (saslTimeoutSeen) {
-            retryCount = 0;
-            saslTimeoutSeen = false;
+          // If there were SASL failures earlier, remove them from retryCount, 
as there was
+          // a SASL success (and some other request post bootstrap was also 
successful).
+          if (saslRetryCount > 0) {
+            retryCount -= saslRetryCount;

Review Comment:
   Add the `Precondition` check here as well.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to