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
c423be7d
Commit
c423be7d
authored
12 years ago
by
Patrick Wendell
Browse files
Options
Downloads
Patches
Plain Diff
Renaming stage finished function
parent
07f568e1
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/spark/scheduler/DAGScheduler.scala
+3
-3
3 additions, 3 deletions
core/src/main/scala/spark/scheduler/DAGScheduler.scala
with
3 additions
and
3 deletions
core/src/main/scala/spark/scheduler/DAGScheduler.scala
+
3
−
3
View file @
c423be7d
...
@@ -412,7 +412,7 @@ class DAGScheduler(taskSched: TaskScheduler) extends TaskSchedulerListener with
...
@@ -412,7 +412,7 @@ class DAGScheduler(taskSched: TaskScheduler) extends TaskSchedulerListener with
val
task
=
event
.
task
val
task
=
event
.
task
val
stage
=
idToStage
(
task
.
stageId
)
val
stage
=
idToStage
(
task
.
stageId
)
def
s
tageFinished
(
stage
:
Stage
)
=
{
def
markS
tage
As
Finished
(
stage
:
Stage
)
=
{
val
serviceTime
=
stageSubmissionTimes
.
remove
(
stage
)
match
{
val
serviceTime
=
stageSubmissionTimes
.
remove
(
stage
)
match
{
case
Some
(
t
)
=>
(
System
.
currentTimeMillis
()
-
t
).
toString
case
Some
(
t
)
=>
(
System
.
currentTimeMillis
()
-
t
).
toString
case
_
=>
"Unkown"
case
_
=>
"Unkown"
...
@@ -438,7 +438,7 @@ class DAGScheduler(taskSched: TaskScheduler) extends TaskSchedulerListener with
...
@@ -438,7 +438,7 @@ class DAGScheduler(taskSched: TaskScheduler) extends TaskSchedulerListener with
if
(
job
.
numFinished
==
job
.
numPartitions
)
{
if
(
job
.
numFinished
==
job
.
numPartitions
)
{
activeJobs
-=
job
activeJobs
-=
job
resultStageToJob
-=
stage
resultStageToJob
-=
stage
s
tageFinished
(
stage
)
markS
tage
As
Finished
(
stage
)
}
}
job
.
listener
.
taskSucceeded
(
rt
.
outputId
,
event
.
result
)
job
.
listener
.
taskSucceeded
(
rt
.
outputId
,
event
.
result
)
}
}
...
@@ -457,7 +457,7 @@ class DAGScheduler(taskSched: TaskScheduler) extends TaskSchedulerListener with
...
@@ -457,7 +457,7 @@ class DAGScheduler(taskSched: TaskScheduler) extends TaskSchedulerListener with
stage
.
addOutputLoc
(
smt
.
partition
,
status
)
stage
.
addOutputLoc
(
smt
.
partition
,
status
)
}
}
if
(
running
.
contains
(
stage
)
&&
pendingTasks
(
stage
).
isEmpty
)
{
if
(
running
.
contains
(
stage
)
&&
pendingTasks
(
stage
).
isEmpty
)
{
s
tageFinished
(
stage
)
markS
tage
As
Finished
(
stage
)
logInfo
(
"looking for newly runnable stages"
)
logInfo
(
"looking for newly runnable stages"
)
logInfo
(
"running: "
+
running
)
logInfo
(
"running: "
+
running
)
logInfo
(
"waiting: "
+
waiting
)
logInfo
(
"waiting: "
+
waiting
)
...
...
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