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

    https://github.com/apache/spark/pull/22192#discussion_r216048261
  
    --- Diff: core/src/main/scala/org/apache/spark/executor/Executor.scala ---
    @@ -136,6 +136,23 @@ private[spark] class Executor(
       // for fetching remote cached RDD blocks, so need to make sure it uses 
the right classloader too.
       env.serializerManager.setDefaultClassLoader(replClassLoader)
     
    +  private val pluginList = conf.get(EXECUTOR_PLUGINS)
    --- End diff --
    
    Just noticed... all this code is in the constructor, so it would be better 
to not leave unnecessary fields around. Something like:
    
    ```
    private val plugins: Seq[ExecutorPlugin] = {
      // All this initialization code.
    }
    ```



---

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

Reply via email to