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
1ae3c0fc
Commit
1ae3c0fc
authored
11 years ago
by
Prashant Sharma
Browse files
Options
Downloads
Patches
Plain Diff
Added a comment about ActorRef and ActorSelection difference.
parent
76566b1f
No related branches found
No related tags found
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/MapOutputTracker.scala
+7
-0
7 additions, 0 deletions
core/src/main/scala/org/apache/spark/MapOutputTracker.scala
with
7 additions
and
0 deletions
core/src/main/scala/org/apache/spark/MapOutputTracker.scala
+
7
−
0
View file @
1ae3c0fc
...
...
@@ -72,6 +72,13 @@ private[spark] class MapOutputTracker extends Logging {
// throw a SparkException if this fails.
private
def
askTracker
(
message
:
Any
)
:
Any
=
{
try
{
/*
The difference between ActorRef and ActorSelection is well explained here:
http://doc.akka.io/docs/akka/2.2.3/project/migration-guide-2.1.x-2.2.x.html#Use_actorSelection_instead_of_actorFor
In spark a map output tracker can be either started on Driver where it is created which
is an ActorRef or it can be on executor from where it is looked up which is an
actorSelection.
*/
val
future
=
trackerActor
match
{
case
Left
(
a
:
ActorRef
)
=>
a
.
ask
(
message
)(
timeout
)
case
Right
(
b
:
ActorSelection
)
=>
b
.
ask
(
message
)(
timeout
)
...
...
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