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

    https://github.com/apache/spark/pull/10366#discussion_r47972323
  
    --- Diff: 
core/src/main/scala/org/apache/spark/deploy/rest/mesos/MesosRestServer.scala ---
    @@ -99,7 +99,10 @@ private[mesos] class MesosSubmitRequestServlet(
         // cause spark-submit script to look for files in SPARK_HOME instead.
         // We only need the ability to specify where to find spark-submit 
script
         // which user can user spark.executor.home or spark.home 
configurations.
    -    val environmentVariables = 
request.environmentVariables.filterKeys(!_.equals("SPARK_HOME"))
    +    //
    +    // Due to https://issues.scala-lang.org/browse/SI-6654, `filterKeys` 
returns an
    +    // unserializable object,so we must call `.map(identity)` on the 
result.
    +    val environmentVariables = 
request.environmentVariables.filterKeys(!_.equals("SPARK_HOME")).map(identity)
    --- End diff --
    
    this line will fail style tests because it's too long. Need to break it 
into 2


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