Junrui Li created FLINK-32217: --------------------------------- Summary: 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 Affects Versions: 1.17.0 Reporter: Junrui Li 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)