Github user kayousterhout commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1124#discussion_r13955665
  
    --- Diff: core/src/main/scala/org/apache/spark/executor/Executor.scala ---
    @@ -212,7 +208,12 @@ private[spark] class Executor(
             val serializedDirectResult = ser.serialize(directResult)
             logInfo("Serialized size of result for " + taskId + " is " + 
serializedDirectResult.limit)
             val serializedResult = {
    -          if (serializedDirectResult.limit >= akkaFrameSize - 1024) {
    +          // TODO: [SPARK-1112] We use the min frame size to determine 
whether to use Akka to send
    +          // the task result or block manager. Since this is via the 
backend, whose actor system is
    +          // initialized before receiving the Spark conf, and hence it 
does not know
    +          // `spark.akka.frameSize`. A temporary solution is using the min 
frame size.
    +          // [SPARK-2156] We subtract 200K to leave some space for other 
data in the Akka message.
    +          if (serializedDirectResult.limit >= AkkaUtils.minFrameSizeBytes 
- 200 * 1024) {
    --- End diff --
    
    Re: your last question, I have no idea...you definitely know more about 
this than I do at this point.  Using the higher, 200K value seems like a safe 
alternative to what's currently there.  It would be great to add this constant 
in AkkaUtils so we don't need to manually track this down if it changes again 
in the future.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to