[ https://issues.apache.org/jira/browse/FLINK-32217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhu Zhu updated FLINK-32217: ---------------------------- Component/s: Runtime / REST > 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)