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

    https://github.com/apache/spark/pull/21068#discussion_r191762829
  
    --- Diff: 
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/config.scala 
---
    @@ -328,4 +328,19 @@ package object config {
         CACHED_FILES_TYPES,
         CACHED_CONF_ARCHIVE)
     
    +  /* YARN allocator-level blacklisting related config entries. */
    +  private[spark] val YARN_EXECUTOR_LAUNCH_BLACKLIST_ENABLED =
    +    
ConfigBuilder("spark.yarn.blacklist.executor.launch.blacklisting.enabled")
    +      .booleanConf
    +      .createOptional
    --- End diff --
    
    I followed the existing pattern used for BLACKLIST_ENABLED:
    
https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/internal/config/package.scala#L164
    
    But you are right createWithDefault is more adequate here. I will change 
this.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to