Skip to content

[BEAM-4776] Add MetricQueryResults.allMetrics() helper - #7883

Merged
mxm merged 1 commit into
apache:masterfrom
ryan-williams:am
Feb 26, 2019
Merged

mxm merged 1 commit into
apache:masterfrom
ryan-williams:am

Conversation

@ryan-williams

Copy link
Copy Markdown
Contributor

(factored out of #7823)

Simple helper for the common case of fetching all metrics from a MetricQueryResults, replacing both queryResults(null) and queryMetrics(MetricsFilter.builder().build()

R: @robertwb, @ajamato

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Python Build Status --- Build Status
Build Status
Build Status --- --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@ryan-williams

Copy link
Copy Markdown
Contributor Author

seems like a flaky test:


org.apache.beam.sdk.io.cassandra.CassandraIOTest > classMethod FAILED
--
java.lang.AssertionError at CassandraIOTest.java:100
18:50:38.650 [StorageServiceShutdownHook] INFO  o.a.cassandra.hints.HintsService - Paused hints dispatch
 
org.apache.beam.sdk.io.cassandra.CassandraIOTest > classMethod FAILED
java.lang.NullPointerException at CassandraIOTest.java:125

@ryan-williams

Copy link
Copy Markdown
Contributor Author

Run Java PreCommit

@ryan-williams

Copy link
Copy Markdown
Contributor Author

Run Portable_Python PreCommit

@ryan-williams

Copy link
Copy Markdown
Contributor Author

Portable_Python PreCommit OOM'd!:

[flink-runner-job-server] ERROR org.apache.beam.runners.flink.FlinkJobInvocation - Error during job invocation BeamApp-root-0223053928-e1bf7e3d_a7784282-debe-4f1c-a18e-9edb11c7aec5.
--
org.apache.flink.runtime.client.JobExecutionException: Job execution failed.
at org.apache.flink.runtime.jobmaster.JobResult.toJobExecutionResult(JobResult.java:146)
at org.apache.flink.runtime.minicluster.MiniCluster.executeJobBlocking(MiniCluster.java:632)
at org.apache.flink.streaming.api.environment.LocalStreamEnvironment.execute(LocalStreamEnvironment.java:123)
at org.apache.beam.runners.flink.FlinkStreamingPortablePipelineTranslator$StreamingTranslationContext.execute(FlinkStreamingPortablePipelineTranslator.java:158)
at org.apache.beam.runners.flink.FlinkJobInvocation.runPipelineWithTranslator(FlinkJobInvocation.java:149)
at org.apache.beam.runners.flink.FlinkJobInvocation.runPipeline(FlinkJobInvocation.java:114)
at org.apache.beam.vendor.guava.v20_0.com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:111)
at org.apache.beam.vendor.guava.v20_0.com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:58)
at org.apache.beam.vendor.guava.v20_0.com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:717)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:957)
at java.util.concurrent.ThreadPoolExecutor.ensurePrestart(ThreadPoolExecutor.java:1603)
 
at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:334)
at java.util.concurrent.ScheduledThreadPoolExecutor.scheduleAtFixedRate(ScheduledThreadPoolExecutor.java:573)
at org.apache.flink.streaming.runtime.tasks.SystemProcessingTimeService.scheduleAtFixedRate(SystemProcessingTimeService.java:146)
at org.apache.beam.runners.flink.translation.wrappers.streaming.DoFnOperator.open(DoFnOperator.java:378)
at org.apache.beam.runners.flink.translation.wrappers.streaming.ExecutableStageDoFnOperator.open(ExecutableStageDoFnOperator.java:203)
at org.apache.flink.streaming.runtime.tasks.StreamTask.openAllOperators(StreamTask.java:420)
at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:296)
at org.apache.flink.runtime.taskmanager.Task.run(Task.java:712)

publishers {
archiveJunit('**/build/test-results/**/*.xml')
}
}metconstep

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

oh, that's a typo! thanks, let me fix now

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

pushed a corrected version, good catch!

that's me trying to search for the MetricsContainerStepMap file when IntelliJ is not ready, and has a race condition with the file-search popup appearing and the text going there 😞

@mxm mxm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Thanks!

@mxm
mxm merged commit 2fbc8c0 into apache:master Feb 26, 2019
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