Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-22135] [MESOS] metrics in spark-dispatcher not being registered properly #19358

Closed
wants to merge 2 commits into from

Conversation

pmackles
Copy link

What changes were proposed in this pull request?

Fix a trivial bug with how metrics are registered in the mesos dispatcher. Bug resulted in creating a new registry each time the metricRegistry() method was called.

How was this patch tested?

Verified manually on local mesos setup

@jerryshao
Copy link
Contributor

ok to test.

@jerryshao
Copy link
Contributor

Would you please add a [MESOS]tag in your PR title, like other PR did. Thanks.

@SparkQA
Copy link

SparkQA commented Sep 27, 2017

Test build #82218 has finished for PR 19358 at commit a327419.

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

override def sourceName: String = "mesos_cluster"
override def metricRegistry: MetricRegistry = new MetricRegistry()
override def metricRegistry: MetricRegistry = registry
Copy link
Member

Choose a reason for hiding this comment

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

Actually, just change both of these to override val ...

@pmackles pmackles changed the title [SPARK-22135] metrics in spark-dispatcher not being registered properly [SPARK-22135] [MESOS] metrics in spark-dispatcher not being registered properly Sep 27, 2017
@pmackles
Copy link
Author

thanks for the quick review @srowen and @jerryshao - both requested changes committed

@SparkQA
Copy link

SparkQA commented Sep 27, 2017

Test build #82235 has finished for PR 19358 at commit b11a448.

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

@jerryshao
Copy link
Contributor

LGTM.

@jerryshao
Copy link
Contributor

Merging to master and branch 2.2. Thanks!

asfgit pushed a commit that referenced this pull request Sep 28, 2017
… properly

## What changes were proposed in this pull request?

Fix a trivial bug with how metrics are registered in the mesos dispatcher. Bug resulted in creating a new registry each time the metricRegistry() method was called.

## How was this patch tested?

Verified manually on local mesos setup

Author: Paul Mackles <pmackles@adobe.com>

Closes #19358 from pmackles/SPARK-22135.

(cherry picked from commit f20be4d)
Signed-off-by: jerryshao <sshao@hortonworks.com>
@asfgit asfgit closed this in f20be4d Sep 28, 2017
MatthewRBruce pushed a commit to Shopify/spark that referenced this pull request Jul 31, 2018
… properly

## What changes were proposed in this pull request?

Fix a trivial bug with how metrics are registered in the mesos dispatcher. Bug resulted in creating a new registry each time the metricRegistry() method was called.

## How was this patch tested?

Verified manually on local mesos setup

Author: Paul Mackles <pmackles@adobe.com>

Closes apache#19358 from pmackles/SPARK-22135.

(cherry picked from commit f20be4d)
Signed-off-by: jerryshao <sshao@hortonworks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants