Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
7f1e507b
Commit
7f1e507b
authored
9 years ago
by
ehnalis
Committed by
Sean Owen
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a typo in DAGScheduler.
Author: ehnalis <zoltan.zvara@gmail.com> Closes #8308 from ehnalis/master.
parent
5c148901
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala
+20
-7
20 additions, 7 deletions
.../main/scala/org/apache/spark/scheduler/DAGScheduler.scala
with
20 additions
and
7 deletions
core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala
+
20
−
7
View file @
7f1e507b
...
...
@@ -152,17 +152,24 @@ class DAGScheduler(
// may lead to more delay in scheduling if those locations are busy.
private
[
scheduler
]
val
REDUCER_PREF_LOCS_FRACTION
=
0.2
// Called by TaskScheduler to report task's starting.
/**
* Called by the TaskSetManager to report task's starting.
*/
def
taskStarted
(
task
:
Task
[
_
],
taskInfo
:
TaskInfo
)
{
eventProcessLoop
.
post
(
BeginEvent
(
task
,
taskInfo
))
}
// Called to report that a task has completed and results are being fetched remotely.
/**
* Called by the TaskSetManager to report that a task has completed
* and results are being fetched remotely.
*/
def
taskGettingResult
(
taskInfo
:
TaskInfo
)
{
eventProcessLoop
.
post
(
GettingResultEvent
(
taskInfo
))
}
// Called by TaskScheduler to report task completions or failures.
/**
* Called by the TaskSetManager to report task completions or failures.
*/
def
taskEnded
(
task
:
Task
[
_
],
reason
:
TaskEndReason
,
...
...
@@ -188,18 +195,24 @@ class DAGScheduler(
BlockManagerHeartbeat
(
blockManagerId
),
new
RpcTimeout
(
600
seconds
,
"BlockManagerHeartbeat"
))
}
// Called by TaskScheduler when an executor fails.
/**
* Called by TaskScheduler implementation when an executor fails.
*/
def
executorLost
(
execId
:
String
)
:
Unit
=
{
eventProcessLoop
.
post
(
ExecutorLost
(
execId
))
}
// Called by TaskScheduler when a host is added
/**
* Called by TaskScheduler implementation when a host is added.
*/
def
executorAdded
(
execId
:
String
,
host
:
String
)
:
Unit
=
{
eventProcessLoop
.
post
(
ExecutorAdded
(
execId
,
host
))
}
// Called by TaskScheduler to cancel an entire TaskSet due to either repeated failures or
// cancellation of the job itself.
/**
* Called by the TaskSetManager to cancel an entire TaskSet due to either repeated failures or
* cancellation of the job itself.
*/
def
taskSetFailed
(
taskSet
:
TaskSet
,
reason
:
String
,
exception
:
Option
[
Throwable
])
:
Unit
=
{
eventProcessLoop
.
post
(
TaskSetFailed
(
taskSet
,
reason
,
exception
))
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment