Github user devaraj-kavali commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12571#discussion_r61209327
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/cluster/SparkDeploySchedulerBackend.scala
 ---
    @@ -66,12 +66,20 @@ private[spark] class SparkDeploySchedulerBackend(
           "--cores", "{{CORES}}",
           "--app-id", "{{APP_ID}}",
           "--worker-url", "{{WORKER_URL}}")
    -    val extraJavaOpts = 
sc.conf.getOption("spark.executor.extraJavaOptions")
    +    var extraJavaOpts = 
sc.conf.getOption("spark.executor.extraJavaOptions")
           .map(Utils.splitCommandString).getOrElse(Seq.empty)
         val classPathEntries = 
sc.conf.getOption("spark.executor.extraClassPath")
           .map(_.split(java.io.File.pathSeparator).toSeq).getOrElse(Nil)
         val libraryPathEntries = 
sc.conf.getOption("spark.executor.extraLibraryPath")
           .map(_.split(java.io.File.pathSeparator).toSeq).getOrElse(Nil)
    +    // Add GC Limit options if they are not present
    +    val extraJavaOptsAsStr = extraJavaOpts.mkString(" ")
    +    if (!extraJavaOptsAsStr.contains("-XX:GCTimeLimit")) {
    +      extraJavaOpts :+= Utils.getGCTimeLimitOption
    --- End diff --
    
    Thanks @vanzin for your comments, I will update with the comments fix and 
also will verify with non-Oracle JVMs.


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