Skip to content

Conversation

@kayousterhout
Copy link
Contributor

This is a code cleanup.

The BlockResult class originally contained an InputMetrics object so that InputMetrics could
directly be used as the InputMetrics for the whole task. Now we copy the fields out of here, and
the presence of this object is confusing because it's only a partial input metrics (it doesn't
include the records read). Because this object is no longer useful (and is confusing), it should
be removed.

The BlockResult class originally contained an InputMetrics object so that InputMetrics could
directly be used as the InputMetrics for the whole task. Now we copy the fields out of here, and
the presence of this object is confusing because it's only a partial input metrics (it doesn't
include the records read). Because this object is no longer useful (and is confusing), it should
be removed.
@SparkQA
Copy link

SparkQA commented Apr 22, 2015

Test build #30731 has finished for PR 5627 at commit a08ca19.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.
  • This patch does not change any dependencies.

@sryza
Copy link
Contributor

sryza commented Apr 22, 2015

LGTM. One tiny nit is that import org.apache.spark.executor._ could go to import org.apache.spark.executor.{DataReadMethod, ShuffleWriteMetrics}

@kayousterhout
Copy link
Contributor Author

<3 tiny nits -- thanks for looking at this @sryza! Fixed!

@SparkQA
Copy link

SparkQA commented Apr 22, 2015

Test build #30768 has finished for PR 5627 at commit bf64bbe.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.
  • This patch does not change any dependencies.

@shivaram
Copy link
Contributor

LGTM

@asfgit asfgit closed this in 03e85b4 Apr 23, 2015
@kayousterhout kayousterhout deleted the SPARK-7046 branch April 23, 2015 23:38
jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request May 14, 2015
This is a code cleanup.

The BlockResult class originally contained an InputMetrics object so that InputMetrics could
directly be used as the InputMetrics for the whole task. Now we copy the fields out of here, and
the presence of this object is confusing because it's only a partial input metrics (it doesn't
include the records read). Because this object is no longer useful (and is confusing), it should
be removed.

Author: Kay Ousterhout <[email protected]>

Closes apache#5627 from kayousterhout/SPARK-7046 and squashes the following commits:

bf64bbe [Kay Ousterhout] Import fix
a08ca19 [Kay Ousterhout] [SPARK-7046] Remove InputMetrics from BlockResult
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
This is a code cleanup.

The BlockResult class originally contained an InputMetrics object so that InputMetrics could
directly be used as the InputMetrics for the whole task. Now we copy the fields out of here, and
the presence of this object is confusing because it's only a partial input metrics (it doesn't
include the records read). Because this object is no longer useful (and is confusing), it should
be removed.

Author: Kay Ousterhout <[email protected]>

Closes apache#5627 from kayousterhout/SPARK-7046 and squashes the following commits:

bf64bbe [Kay Ousterhout] Import fix
a08ca19 [Kay Ousterhout] [SPARK-7046] Remove InputMetrics from BlockResult
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