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 2022/12/04 14:20:20 UTC

[GitHub] [spark] srowen commented on a diff in pull request #38901: [SPARK-41376][CORE] Executor netty direct memory check should respect spark.shuffle.io.preferDirectBufs

srowen commented on code in PR #38901:
URL: https://github.com/apache/spark/pull/38901#discussion_r1038978948


##########
core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala:
##########
@@ -85,7 +85,8 @@ private[spark] class CoarseGrainedExecutorBackend(
 
     logInfo("Connecting to driver: " + driverUrl)
     try {
-      if (PlatformDependent.directBufferPreferred() &&
+      if (env.conf.getBoolean("spark.shuffle.io.preferDirectBufs", true) &&

Review Comment:
   Should this check be 'and' or 'or'? how is it implemented elsewhere? that is, should 'true' or 'false' setting of this value override the default?



-- 
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: reviews-unsubscribe@spark.apache.org

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