[
https://issues.apache.org/jira/browse/FLINK-22631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17439295#comment-17439295
]
Yun Gao commented on FLINK-22631:
---------------------------------
Hi [~kanata163], very thanks for reporting this issue! I think this would
indeed be an issue that needs discussion, but I think it might not related to
FLIP-147 since it dose not rely on checkpoint to maintain, and I think current
the issue should be same for bound batch mode and streaming mode.Â
And on the other hand, could you also enlighten the detailed scenario that
relies on the metric? Since another issue also come to me that currently the
metric should be not kept if there are failovers, thus even if we report the
metrics at the end of the job, we might still not be able to ensures the
expected correctness for the streaming mode?
> Metrics are incorrect when task finished
> ----------------------------------------
>
> Key: FLINK-22631
> URL: https://issues.apache.org/jira/browse/FLINK-22631
> Project: Flink
> Issue Type: Improvement
> Components: Runtime / Metrics
> Reporter: Li
> Priority: Minor
> Labels: auto-deprioritized-major
> Attachments: image-2021-05-11-20-13-25-886.png,
> image-2021-05-11-20-14-29-290.png, image-2021-05-19-10-10-29-765.png,
> image-2021-05-19-10-11-02-764.png
>
>
> MetricReporters are reported periodically, default 10 seconds. The
> final metrics may not be reported to metric system like pushgateway when task
> finished. This makes users unable to obtain the correct metrics。
>
> Maybe metricReporters should be reported once manually before closed.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)