Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
correct the comment
  • Loading branch information
Ngone51 committed Apr 17, 2018
commit 500cc77a3cf942730a625c81c7536455510d42f0
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ private[spark] class TaskSetManager(
None
}

/** Check whether a task is currently running an attempt on a given host */
/** Check whether a task once run an attempt on a given host */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be "once ran"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Thank you.

private def hasAttemptOnHost(taskIndex: Int, host: String): Boolean = {
taskAttempts(taskIndex).exists { info => info.running && info.host == host }
taskAttempts(taskIndex).exists(_.host == host)
}

private def isTaskBlacklistedOnExecOrNode(index: Int, execId: String, host: String): Boolean = {
Expand Down