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

    https://github.com/apache/spark/pull/3469#discussion_r20916200
  
    --- Diff: 
core/src/main/scala/org/apache/spark/network/netty/SparkTransportConf.scala ---
    @@ -29,15 +46,28 @@ object SparkTransportConf {
        */
       def fromSparkConf(_conf: SparkConf, numUsableCores: Int = 0): 
TransportConf = {
         val conf = _conf.clone
    -    if (numUsableCores > 0) {
    --- End diff --
    
    We used to let the TransportContext decide how many cores to use if 
numUsableCores were 0 -- since Spark is inserting this information about the 
maximum it thinks it needs, I inserted the logic of using Runtime to 
approximate the number of cores into here so we can also apply the max in this 
case.


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

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

Reply via email to