You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/05/03 06:50:12 UTC

[GitHub] [spark] otterc commented on a change in pull request #32287: [SPARK-27991][CORE] Defer the fetch request on Netty OOM

otterc commented on a change in pull request #32287:
URL: https://github.com/apache/spark/pull/32287#discussion_r624904117



##########
File path: core/src/main/scala/org/apache/spark/storage/ShuffleBlockFetcherIterator.scala
##########
@@ -708,6 +785,15 @@ final class ShuffleBlockFetcherIterator(
   }
 
   private def fetchUpToMaxBytes(): Unit = {
+    if (isNettyOOMOnShuffle.get()) {
+      if (reqsInFlight > 0) {
+        // Return immediately if Netty is still OOMed and there're ongoing fetch requests
+        return
+      } else {
+        ShuffleBlockFetcherIterator.resetNettyOOMFlagIfPossible(0)
+      }
+    }
+

Review comment:
       Should it again check at line 805 that `freeDirectMemory` > maxReqSizeShuffleToMem?
   Otherwise it immediately unsets the flag and sends more requests.




-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org