[jira] [Created] (FLINK-6184) Buffer metrics can cause NPE

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-6184) Buffer metrics can cause NPE

Shang Yuanchun (Jira)
Chesnay Schepler created FLINK-6184:
---------------------------------------

             Summary: Buffer metrics can cause NPE
                 Key: FLINK-6184
                 URL: https://issues.apache.org/jira/browse/FLINK-6184
             Project: Flink
          Issue Type: Bug
          Components: Metrics
    Affects Versions: 1.3.0
            Reporter: Chesnay Schepler
            Priority: Blocker
             Fix For: 1.3.0


The Buffer metrics defined in the TaskIOMetricGroup are created when a Task is created. At this time, the bufferPool in the Input gates that the metrics make use of is still null, leading to possible NPEs.

These metrics should either be created after the required objects are fully initialized or guard this case with null checks.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)