Skip to content

Conversation

@cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

This PR is a follow up for #12417, now we always track input/output/shuffle metrics in spark JSON protocol and status API.

Most of the line changes are because of re-generating the gold answer for HistoryServerSuite, and we add a lot of 0 values for read/write metrics.

How was this patch tested?

existing tests.

@cloud-fan
Copy link
Contributor Author

cc @rxin

"attemptId" : "1",
"startTimeEpoch" : 1430917380880,
"endTimeEpoch" : 1430917380890,
"lastUpdatedEpoch" : 0,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

When I re-generate the gold answer, these 3 fields are moved to the last. It seems that when we introduce these 3 fields at #11326, we didn't re-generate gold answer, but update the answer files manually.

@rxin
Copy link
Contributor

rxin commented Apr 18, 2016

LGTM pending Jenkins.

@SparkQA
Copy link

SparkQA commented Apr 18, 2016

Test build #2803 has finished for PR 12462 at commit 08874a0.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

val outputMetrics: Option[OutputMetrics],
val shuffleReadMetrics: Option[ShuffleReadMetrics],
val shuffleWriteMetrics: Option[ShuffleWriteMetrics])
val inputMetrics: InputMetrics,
Copy link
Contributor

Choose a reason for hiding this comment

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

one thing - can you verify that this doesn't change the json output?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I couldn't find the jackson doc for it, so I tried it locally. For scala Option, jackson just treat it as a nullable field, if it's Some, it will unwrap the Some and parse the real value. If it's None, it will return null for that field.

In this case, where we always return Some, it's ok to drop the Option.

@cloud-fan
Copy link
Contributor Author

retest this please

@SparkQA
Copy link

SparkQA commented Apr 18, 2016

Test build #2811 has started for PR 12462 at commit 4064d08.

@SparkQA
Copy link

SparkQA commented Apr 18, 2016

Test build #56072 has finished for PR 12462 at commit 4064d08.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Apr 18, 2016

Test build #2815 has finished for PR 12462 at commit 4064d08.

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

@rxin
Copy link
Contributor

rxin commented Apr 18, 2016

Merging in master.

@asfgit asfgit closed this in 6027340 Apr 18, 2016
lw-lin pushed a commit to lw-lin/spark that referenced this pull request Apr 20, 2016
## What changes were proposed in this pull request?

This PR is a follow up for apache#12417, now we always track input/output/shuffle metrics in spark JSON protocol and status API.

Most of the line changes are because of re-generating the gold answer for `HistoryServerSuite`, and we add a lot of 0 values for read/write metrics.

## How was this patch tested?

existing tests.

Author: Wenchen Fan <wenchen@databricks.com>

Closes apache#12462 from cloud-fan/follow.
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.

3 participants