Skip to content

Conversation

@rxin
Copy link
Contributor

@rxin rxin commented Apr 14, 2016

What changes were proposed in this pull request?

When there are multiple attempts for a stage, we currently only reset internal accumulator values if all the tasks are resubmitted. It would make more sense to reset the accumulator values for each stage attempt. This will allow us to eventually get rid of the internal flag in the Accumulator class. This is part of my bigger effort to simplify accumulators and task metrics.

How was this patch tested?

Covered by existing tests.

@SparkQA
Copy link

SparkQA commented Apr 14, 2016

Test build #55776 has finished for PR 12378 at commit 48f248a.

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

@rxin
Copy link
Contributor Author

rxin commented Apr 14, 2016

cc @andrewor14

*
* This is called every time the stage is submitted, *except* when a subset of tasks
* belonging to this stage has already finished. Otherwise, reinitializing the internal
* accumulators here again will override partial values from the finished tasks.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need to care about the overriding problem as mentioned here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole point of this change is to split them into separate accumulators so we don't need to worry about overrides.

@andrewor14
Copy link
Contributor

LGTM merging into master.

@asfgit asfgit closed this in dac40b6 Apr 14, 2016
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