Efrat Levitan created FLINK-39790:
-------------------------------------
Summary: State latency/size tracking metrics not exported without
sampling
Key: FLINK-39790
URL: https://issues.apache.org/jira/browse/FLINK-39790
Project: Flink
Issue Type: Bug
Components: Runtime / State Backends
Affects Versions: 2.1.0
Reporter: Efrat Levitan
h4. How to reproduce
{code:java}
state.*-track.keyed-state-enabled: true
state.*-track.sample-interval: 1
{code}
I think the latency/size tracking histogram metrics give a useful insight on
the state operations. I noticed nothing is exported when setting
sample-interval to 1, because for {{sampleInterval}} of 1,
{{StateMetricBase#loopUpdateCounter}} will always return 0.
Enabling the metrics without sampling is probably not a great idea, and yet it
looks like an edge case that could be handled (or documented).
[~hejufang001] what do you think? (I drafted a possible fix in
https://github.com/apache/flink/pull/28257)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)