You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Chahyeong Cho (Jira)" <ji...@apache.org> on 2025/03/26 01:19:00 UTC
[jira] [Created] (FLINK-37558) Check right variable on MetricRegistryImpl#addSpan
Chahyeong Cho created FLINK-37558:
-------------------------------------
Summary: Check right variable on MetricRegistryImpl#addSpan
Key: FLINK-37558
URL: https://issues.apache.org/jira/browse/FLINK-37558
Project: Flink
Issue Type: Improvement
Reporter: Chahyeong Cho
Looking at the null check cases for 'reporters' in MetricRegistryImpl, the null check in addSpan should be changed to the null check for 'traceReporters' rather than 'reporters', because notifyTraceReportersOfAddedSpan method uses 'traceReporters', not 'reporters'.
The null check may be meaningless because all reporters values are initialized to empty ArrayList from the constructor, but I'd like to make the change for the correct check.
https://github.com/apache/flink/blob/0c35363f93cbe0d48bc1b8e9e6e7624565323280/flink-runtime/src/main/java/org/apache/flink/runtime/metrics/MetricRegistryImpl.java#L466-L468
--
This message was sent by Atlassian Jira
(v8.20.10#820010)