Skip to content

Commit

Permalink
Improve comment in block manager and the master endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
abellina committed Nov 16, 2023
1 parent 6d002a3 commit 5480faa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ private[spark] class BlockManager(
extends BlockDataManager with BlockEvictionHandler with Logging {

// We initialize the ShuffleManager later in SparkContext and Executor, to allow
// user jars to define custom ShuffleManagers, as such `_shuffleManager` will be null for the
// executor, and we ask for the instance from the SparkEnv.
// user jars to define custom ShuffleManagers, as such `_shuffleManager` will be null here
// (except for tests) and we ask for the instance from the SparkEnv.
private lazy val shuffleManager = Option(_shuffleManager).getOrElse(SparkEnv.get.shuffleManager)

// same as `conf.get(config.SHUFFLE_SERVICE_ENABLED)`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ class BlockManagerMasterEndpoint(
isDriver: Boolean)
extends IsolatedThreadSafeRpcEndpoint with Logging {

// We initialize the ShuffleManager later in SparkContext and Executor, to allow
// user jars to define custom ShuffleManagers, as such `_shuffleManager` will be null here
// (except for tests) and we ask for the instance from the SparkEnv.
private lazy val shuffleManager = Option(_shuffleManager).getOrElse(SparkEnv.get.shuffleManager)

// Mapping from executor id to the block manager's local disk directories.
Expand Down

0 comments on commit 5480faa

Please sign in to comment.