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
58072a73
Commit
58072a73
authored
12 years ago
by
Charles Reiss
Browse files
Options
Downloads
Patches
Plain Diff
Remove some dead comments
parent
21636ee4
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/CacheTracker.scala
+0
-6
0 additions, 6 deletions
core/src/main/scala/spark/CacheTracker.scala
with
0 additions
and
6 deletions
core/src/main/scala/spark/CacheTracker.scala
+
0
−
6
View file @
58072a73
...
@@ -204,17 +204,11 @@ private[spark] class CacheTracker(actorSystem: ActorSystem, isMaster: Boolean, b
...
@@ -204,17 +204,11 @@ private[spark] class CacheTracker(actorSystem: ActorSystem, isMaster: Boolean, b
}
}
try
{
try
{
// If we got here, we have to load the split
// If we got here, we have to load the split
// Tell the master that we're doing so
//val host = System.getProperty("spark.hostname", Utils.localHostName)
//val future = trackerActor !! AddedToCache(rdd.id, split.index, host)
// TODO: fetch any remote copy of the split that may be available
// TODO: also register a listener for when it unloads
val
elements
=
new
ArrayBuffer
[
Any
]
val
elements
=
new
ArrayBuffer
[
Any
]
logInfo
(
"Computing partition "
+
split
)
logInfo
(
"Computing partition "
+
split
)
elements
++=
rdd
.
compute
(
split
,
context
)
elements
++=
rdd
.
compute
(
split
,
context
)
// Try to put this block in the blockManager
// Try to put this block in the blockManager
blockManager
.
put
(
key
,
elements
,
storageLevel
,
true
)
blockManager
.
put
(
key
,
elements
,
storageLevel
,
true
)
//future.apply() // Wait for the reply from the cache tracker
return
elements
.
iterator
.
asInstanceOf
[
Iterator
[
T
]]
return
elements
.
iterator
.
asInstanceOf
[
Iterator
[
T
]]
}
finally
{
}
finally
{
loading
.
synchronized
{
loading
.
synchronized
{
...
...
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