mridulm commented on code in PR #43627:
URL: https://github.com/apache/spark/pull/43627#discussion_r1386016225


##########
core/src/main/scala/org/apache/spark/SparkEnv.scala:
##########
@@ -185,6 +191,10 @@ class SparkEnv (
     releasePythonWorker(
       pythonExec, workerModule, PythonWorkerFactory.defaultDaemonModule, 
envVars, worker)
   }
+
+  private[spark] def setShuffleManager(shuffleManager: ShuffleManager): Unit = 
{
+    _shuffleManager = shuffleManager
+  }

Review Comment:
   Instead of setting it, expose an initialize method.
   We use `initializeShuffleManager` in driver/executor after classpath has 
been fixed up (see more below in comment for `shuffleBlockGetterFn`).
   
   ```suggestion
     private[spark] def initiailzeShuffleManager(): Unit = {
       Preconditions.checkState(null == _shuffleManager,
         "Shuffle manager already initialized to %s", _shuffleManager)
       _shuffleManager = ShuffleManager.create(conf, executorId == 
SparkContext.DRIVER_IDENTIFIER)
     }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to