-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-8857][SPARK-8859][Core]Add an internal flag to Accumulable and send internal accumulator updates to the driver via heartbeats #7448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -152,4 +152,22 @@ abstract class TaskContext extends Serializable { | |
| * Returns the manager for this task's managed memory. | ||
| */ | ||
| private[spark] def taskMemoryManager(): TaskMemoryManager | ||
|
|
||
| /** | ||
| * Register an accumulator that belongs to this task. Accumulators must call this method when | ||
| * deserializing in executors. | ||
| */ | ||
| private[spark] def registerAccumulator(a: Accumulable[_, _]): Unit | ||
|
|
||
| /** | ||
| * Return the local values of internal accumulators that belong to this task. The key of the Map | ||
| * is the accumulator id and the value of the Map is the latest accumulator local value. | ||
| */ | ||
| private[spark] def collectInternalAccumulators(): Map[Long, Any] | ||
|
|
||
| /** | ||
| * Return the local values of accumulators that belong to this task. The key of the Map is the | ||
| * accumulator id and the value of the Map is the latest accumulator local value. | ||
| */ | ||
| private[spark] def collectAccumulators(): Map[Long, Any] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you add scaladoc for these methods? in particular, for this one does it contain all accumulators, including internal ones?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also make sure you document what the semantics is for the key (long), value (any) |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add internal to the scaladoc param to explain what it is