Skip to content

Commit

Permalink
CR feedback (clarify comment and log statement)
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenk committed Jun 14, 2020
1 parent ea8efc7 commit a2c0557
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ private[spark] class CoarseGrainedExecutorBackend(

private def decommissionSelf(): Boolean = {
if (!decommissioned) {
logInfo("Decommissioning self w/sync")
logInfo("Decommissioning self and starting background thread to exit when done.")
try {
decommissioned = true
// Tell master we are are decommissioned so it stops trying to schedule us
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/scala/org/apache/spark/executor/Executor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@ private[spark] class Executor(
private[executor] def numRunningTasks: Int = runningTasks.size()

/**
* Mark an executor for decommissioning and avoid launching new tasks.
* Mark an executor for decommissioning.
*/
private[spark] def decommission(): Unit = {
logInfo("Executor asked to decommission. Starting shutdown thread.")
logInfo("Executor asked to decommission.")
decommissioned = true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1890,6 +1890,8 @@ private[spark] class BlockManager(
* Note: this does not delete the shuffle files in-case there is an in-progress fetch
* but rather shadows them.
* Requires an Indexed based shuffle resolver.
*
* @return true if we have not migrated all shuffle blocks, false otherwise.
*/
def offloadShuffleBlocks(): Boolean = {
// Update the queue of shuffles to be migrated
Expand Down

0 comments on commit a2c0557

Please sign in to comment.