Skip to content

[BEAM-1792] Changing Spark to use MetricFiltering#2304

Closed
pabloem wants to merge 1 commit into
apache:masterfrom
pabloem:fix-spark-filtering
Closed

[BEAM-1792] Changing Spark to use MetricFiltering#2304
pabloem wants to merge 1 commit into
apache:masterfrom
pabloem:fix-spark-filtering

Conversation

@pabloem
Copy link
Copy Markdown
Member

@pabloem pabloem commented Mar 23, 2017

  • Make sure the PR title is formatted like: [BEAM-<Jira issue #>] Description of pull request
  • Make sure tests pass via mvn clean verify. (Even better, enable Travis-CI on your fork and ensure the whole test matrix passes).
  • Replace <Jira issue #> in the title with the actual Jira issue number, if there is one.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

@coveralls
Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling a1a5ddc on pabloem:fix-spark-filtering into ** on apache:master**.

@asfbot
Copy link
Copy Markdown

asfbot commented Mar 23, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/8726/
--none--

@pabloem
Copy link
Copy Markdown
Member Author

pabloem commented Mar 23, 2017

r: @aviemzur
hi Aviem. Can you take a look? It's a fairly simple change.

@aviemzur
Copy link
Copy Markdown
Member

Run Spark RunnableOnService

@asfbot
Copy link
Copy Markdown

asfbot commented Mar 24, 2017

Copy link
Copy Markdown
Member

@aviemzur aviemzur left a comment

Choose a reason for hiding this comment

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

Looks great!

Only have one comment.

The test failure seems unrelated, we seem to have a broken build regardless, but let's hold on the merge until this is fixed since the test also uses metrics.

checkNotNull(namespace, "Must specify a inNamespace");
checkNotNull(name, "Must specify a name");
return new AutoValue_MetricNameFilter(namespace.getSimpleName(), name);
return new AutoValue_MetricNameFilter(namespace.getName(), name);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This seems to be a positive change, but I'm not sure it is needed for this PR.

I'm assuming this change was done to match https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/metrics/MetricName.java#L45-L45

There seems to be no test coverage for this. I'd add tests as well (Although again, probably in a separate PR).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That's fair. I've split this up into separate PRs.

@pabloem pabloem force-pushed the fix-spark-filtering branch from a1a5ddc to ca5aec9 Compare March 24, 2017 17:49
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.003%) to 70.102% when pulling ca5aec9 on pabloem:fix-spark-filtering into 5903e69 on apache:master.

@asfbot
Copy link
Copy Markdown

asfbot commented Mar 24, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/8769/
--none--

@pabloem
Copy link
Copy Markdown
Member Author

pabloem commented Mar 24, 2017

@aviemzur the build is fine now, it seems. If it looks fine to you, could you merge it? (If not, I can ask Ben, just let me know if the changes look okay ;)

@aviemzur
Copy link
Copy Markdown
Member

aviemzur commented Mar 25, 2017

Yeah, looks good.
Our build is still broken. We have a fix in #2314. After that is merged we can run the Spark RunnableOnService tests again here and when they pass I'll merge.

@aviemzur
Copy link
Copy Markdown
Member

Hi @pabloem
#2314 has been merged, so we can now properly test your PR.
Can you please rebase on top of master and push to this branch?

@pabloem pabloem force-pushed the fix-spark-filtering branch from ca5aec9 to fb0e99d Compare March 27, 2017 17:13
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.006%) to 70.17% when pulling fb0e99d on pabloem:fix-spark-filtering into 61fad2a on apache:master.

@asfbot
Copy link
Copy Markdown

asfbot commented Mar 27, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/8829/
--none--

@aviemzur
Copy link
Copy Markdown
Member

Run Spark RunnableOnService

@asfbot
Copy link
Copy Markdown

asfbot commented Mar 27, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PostCommit_Java_RunnableOnService_Spark/1396/
--none--

@aviemzur
Copy link
Copy Markdown
Member

LGTM

@asfgit asfgit closed this in 85b820c Mar 28, 2017
@pabloem pabloem deleted the fix-spark-filtering branch March 28, 2017 04:22
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