[ 
https://issues.apache.org/jira/browse/FLINK-32217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17729235#comment-17729235
 ] 

Lijie Wang commented on FLINK-32217:
------------------------------------

Fix via:
master(1.18): 3245e0443b2a4663552a5b707c5c8c46876c1f6d
release-1.17: dfe2874b8757f942d0143e6e5ea6ed3cc13a21d6
release-1.16: bb1ae0559bd7ae24bb3da553a681d07938673c98
 

> 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)

Reply via email to