Skip to content

Conversation

@andrewor14
Copy link
Contributor

by explicitly marking annotated parameters as vals (SI-8813).

Caused by #10835.

@andrewor14 andrewor14 changed the title [HOTFIX] Explicitly mark annotated parameters as vals [HOTFIX] Fix Scala 2.11 compilation Jan 27, 2016
andrewor14 referenced this pull request Jan 27, 2016
The high level idea is that instead of having the executors send both accumulator updates and TaskMetrics, we should have them send only accumulator updates. This eliminates the need to maintain both code paths since one can be implemented in terms of the other. This effort is split into two parts:

**SPARK-12895: Implement TaskMetrics using accumulators.** TaskMetrics is basically just a bunch of accumulable fields. This patch makes TaskMetrics a syntactic wrapper around a collection of accumulators so we don't need to send TaskMetrics from the executors to the driver.

**SPARK-12896: Send only accumulator updates to the driver.** Now that TaskMetrics are expressed in terms of accumulators, we can capture all TaskMetrics values if we just send accumulator updates from the executors to the driver. This completes the parent issue SPARK-10620.

While an effort has been made to preserve as much of the public API as possible, there were a few known breaking DeveloperApi changes that would be very awkward to maintain. I will gather the full list shortly and post it here.

Note: This was once part of #10717. This patch is split out into its own patch from there to make it easier for others to review. Other smaller pieces of already been merged into master.

Author: Andrew Or <[email protected]>

Closes #10835 from andrewor14/task-metrics-use-accums.
@JoshRosen
Copy link
Contributor

LGTM; the line comment isn't really necessary, though.

@yhuai
Copy link
Contributor

yhuai commented Jan 27, 2016

Thanks. I am going to merge this.

@asfgit asfgit closed this in d702f0c Jan 27, 2016
@andrewor14 andrewor14 deleted the fix-scala211 branch January 27, 2016 22:13
@SparkQA
Copy link

SparkQA commented Jan 27, 2016

Test build #50223 has finished for PR 10955 at commit 5b449cc.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants