[
https://issues.apache.org/jira/browse/BEAM-12155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17320444#comment-17320444
]
Emily Ye commented on BEAM-12155:
---------------------------------
{{Also saw this in a run of V2 ValidatesRunner
([https://ci-beam.apache.org/job/beam_PostCommit_Java_VR_Dataflow_V2_Streaming/641/console)]
- it looks like more recent runs failed on other tests so I'm not sure if it
just got masked by other failures:}}
{{23:06:44 > Task :sdks:java:core:compileTestJava}}
{{23:06:44
/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Java_VR_Dataflow_V2_Streaming/src/sdks/java/core/src/test/java/org/apache/beam/sdk/metrics/MetricsTest.java:450:
error: incompatible types: inferred type does not conform to lower bound(s)}}
{{23:06:44 assertThat(}}
{{23:06:44 ^}}
{{23:06:44 inferred: MetricResult<DistributionResult>}}
{{23:06:44 lower bound(s): CAP#1,MetricResult<DistributionResult>}}
{{23:06:44 where CAP#1 is a fresh type-variable:}}
{{23:06:44 CAP#1 extends Object super: MetricResult<DistributionResult> from
capture of ? super MetricResult<DistributionResult>}}
{{23:06:44 Note: Some input files use or override a deprecated API.}}
{{23:06:44 Note: Recompile with -Xlint:deprecation for details.}}
{{23:06:44 Note: Some input files use unchecked or unsafe operations.}}
{{23:06:44 Note: Recompile with -Xlint:unchecked for details.}}
{{23:06:44 1 error}}
> MetricsTest failing on Flink/Spark runners.
> -------------------------------------------
>
> Key: BEAM-12155
> URL: https://issues.apache.org/jira/browse/BEAM-12155
> Project: Beam
> Issue Type: Bug
> Components: test-failures
> Reporter: Kyle Weaver
> Assignee: Chamikara Madhusanka Jayalath
> Priority: P1
>
> org.apache.beam.sdk.metrics.MetricsTest$AttemptedMetricTests.testAttemptedCounterMetrics
> and
> org.apache.beam.sdk.metrics.MetricsTest$AttemptedMetricTests.testAttemptedDistributionMetrics
> are failing.
> I'm guessing [https://github.com/apache/beam/pull/14500] is the cause.
> e.g. https://ci-beam.apache.org/job/beam_PostCommit_Java_PVR_Spark_Batch/4220/
> Expected: a collection containing
> MetricResult\{inNamespace="org.apache.beam.sdk.metrics.MetricsTest",
> name="count", step="MyStep1", attempted=<3L>} but: mismatches were:
> [MetricResult\{inKey: <MyStep1:org.apache.beam.sdk.metrics.MetricsTest:count>
> !=
> <MyStep1-ParMultiDo-Anonymous-:org.apache.beam.sdk.metrics.MetricsTest:count>},
> MetricResult\{inKey: <MyStep1:org.apache.beam.sdk.metrics.MetricsTest:count>
> != <MyStep2:org.apache.beam.sdk.metrics.MetricsTest:count>attempted: <3L> !=
> <6L>}]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)