Skip to content

Conversation

@cloud-fan
Copy link
Contributor

With this change, our query execution listener can get the metrics correctly.

The UI still looks good after this change.
screen shot 2015-10-23 at 11 25 14 am
screen shot 2015-10-23 at 11 25 01 am

Copy link
Contributor

Choose a reason for hiding this comment

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

() since it has side effect

@SparkQA
Copy link

SparkQA commented Oct 22, 2015

Test build #44126 has finished for PR 9215 at commit 4589e66.

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

@SparkQA
Copy link

SparkQA commented Oct 22, 2015

Test build #44129 has finished for PR 9215 at commit 6397cf5.

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we run the same plan physical plan multiple times to make sure metrics are good?

@yhuai
Copy link
Contributor

yhuai commented Oct 22, 2015

Can you also double check if our ui looks good after this change?

@SparkQA
Copy link

SparkQA commented Oct 23, 2015

Test build #44186 has finished for PR 9215 at commit 778992e.

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

Copy link
Contributor

Choose a reason for hiding this comment

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

@cloud-fan sorry. I just realized that this method is in the critical path (when we calculate numRows). How about we remove this change and document it clear that those negative initial values will have a small impact on the sum of memory consumption?

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 was trying to reuse current codebase and didn't create a new SQLMetric(including new MetricValue, MetricParam, etc.). Is it worth to create a new one so that we won't hurt performance for numRows?

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess it is probably not worth that right now. The impact of those -1 just too small (1048576 tasks for 1 MB). I think we can do that later. What do you think?

@SparkQA
Copy link

SparkQA commented Oct 23, 2015

Test build #44237 has finished for PR 9215 at commit 4ff8912.

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

@SparkQA
Copy link

SparkQA commented Oct 25, 2015

Test build #44319 has finished for PR 9215 at commit b088c70.

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry. Just one last thing. I think we need to call unregister at the end of every test, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch!

@SparkQA
Copy link

SparkQA commented Oct 26, 2015

Test build #44332 has finished for PR 9215 at commit 6923c4f.

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

@yhuai
Copy link
Contributor

yhuai commented Oct 26, 2015

Thanks! Merging to master.

@asfgit asfgit closed this in 07ced43 Oct 26, 2015
@scwf
Copy link
Contributor

scwf commented Oct 26, 2015

should this merged to branch-1.5?

@yhuai
Copy link
Contributor

yhuai commented Oct 26, 2015

@scwf It will not be merged to branch-1.5 because our UI handles those metric updates correctly. This problem was exposed after we call the QueryExecutionListener logic (see #9078), which is a 1.6 feature..

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.

5 participants