You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Lijie Wang (Jira)" <ji...@apache.org> on 2023/06/05 08:21:00 UTC
[jira] [Closed] (FLINK-32217) Retain metric store can cause NPE
[ https://issues.apache.org/jira/browse/FLINK-32217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lijie Wang closed FLINK-32217.
------------------------------
Resolution: Fixed
> Retain metric store can cause NPE
> ----------------------------------
>
> Key: FLINK-32217
> URL: https://issues.apache.org/jira/browse/FLINK-32217
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Metrics, Runtime / REST
> Affects Versions: 1.17.0
> Reporter: Junrui Li
> Assignee: Junrui Li
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.18.0, 1.16.3, 1.17.2
>
>
> When metricsFetcher fetches metrics, it will update the metricsStore ([here|https://github.com/apache/flink/blob/d6c3d332340922c24d1af9dd8835d0bf790184b5/flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/legacy/metrics/MetricStore.java#LL91C44-L91C44]). But in this method, it can get null metricStore and cause NPE, which will lead to incorrect results of metrics retain, and we should also fix it from the perspective of stability.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)