[jira] [Created] (FLINK-9210) Call getValue() only once in gauge serialization

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

[jira] [Created] (FLINK-9210) Call getValue() only once in gauge serialization

Shang Yuanchun (Jira)
Jisu You created FLINK-9210:
-------------------------------

             Summary: Call getValue() only once in gauge serialization
                 Key: FLINK-9210
                 URL: https://issues.apache.org/jira/browse/FLINK-9210
             Project: Flink
          Issue Type: Improvement
          Components: Metrics
    Affects Versions: 1.4.2
            Reporter: Jisu You
             Fix For: 1.6.0


MetricDumpSerialization.serializeGauge() calls gauge.getValue twice in gauge serialization. This is troublesome for those who reset gauges in getValue. serializeGauge() should only call getValue once.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)