[
https://issues.apache.org/jira/browse/FLINK-26809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17511733#comment-17511733
]
Roman Khachatryan commented on FLINK-26809:
-------------------------------------------
There is a race condition in test:
* the assertion is made as soon as upload (future) is completed
* the histogram is updated after completing the upload (on success)
Moving assertion out of try/close block solves the problem. I'll open a PR.
> ChangelogStorageMetricsTest.testAttemptsPerUpload failed
> --------------------------------------------------------
>
> Key: FLINK-26809
> URL: https://issues.apache.org/jira/browse/FLINK-26809
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Metrics, Runtime / State Backends
> Affects Versions: 1.15.0, 1.16.0
> Reporter: Matthias Pohl
> Assignee: Roman Khachatryan
> Priority: Critical
> Labels: test-stability
>
> [This
> build|https://dev.azure.com/mapohl/flink/_build/results?buildId=901&view=logs&j=f3dc9b18-b77a-55c1-591e-264c46fe44d1&t=2d3cd81e-1c37-5c31-0ee4-f5d5cdb9324d&l=24226]
> failed due a failure in
> {{ChangelogStorageMetricsTest.testAttemptsPerUpload}}:
> {code}
> Mar 22 12:23:09 [ERROR] Failures:
> Mar 22 12:23:09 [ERROR]
> ChangelogStorageMetricsTest.testAttemptsPerUpload:208
> Mar 22 12:23:09 expected: 3L
> Mar 22 12:23:09 but was: 0L
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)