[
https://issues.apache.org/jira/browse/FLINK-37822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17956603#comment-17956603
]
Aleksandr Iushmanov edited comment on FLINK-37822 at 6/6/25 2:17 PM:
---------------------------------------------------------------------
I have checked locally. Problem with this test is coming from `.report()`
invocations race condition
(https://github.com/apache/flink/blob/c73d3ef375911235da9c55973351887735a66185/flink-metrics/flink-metrics-otel/src/test/java/org/apache/flink/metrics/otel/OpenTelemetryMetricReporterITCase.java#L82-L89).
It can happen that first report (with 2 metrics) is logged in the output after
second report (with 5 metrics). Because test utils only uses last report line
for
validation(https://github.com/apache/flink/blob/c73d3ef375911235da9c55973351887735a66185/flink-metrics/flink-metrics-otel/src/test/java/org/apache/flink/metrics/otel/OpenTelemetryTestBase.java#L87),
it "misses" correct report. I will have a look into how best fix it
was (Author: izeren):
I have checked locally. Problem with this test is coming from `.report()`
invocations race condition. It can happen that first report (with 2 metrics) is
logged in the output after second report (with 5 metrics). Because test utils
only uses last report line for
validation(https://github.com/apache/flink/blob/c73d3ef375911235da9c55973351887735a66185/flink-metrics/flink-metrics-otel/src/test/java/org/apache/flink/metrics/otel/OpenTelemetryTestBase.java#L87),
it "misses" correct report. I will have a look into how best fix it
> OpenTelemetryMetricReporterITCase.testReport test failed of azure ci
> --------------------------------------------------------------------
>
> Key: FLINK-37822
> URL: https://issues.apache.org/jira/browse/FLINK-37822
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Metrics
> Affects Versions: 2.1.0
> Reporter: dalongliu
> Assignee: Piotr Nowojski
> Priority: Major
>
> https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=67712&view=logs&j=1c002d28-a73d-5309-26ee-10036d8476b4&t=71fc2793-8c46-5786-4bb1-366e40d5ca24
--
This message was sent by Atlassian Jira
(v8.20.10#820010)