Chung-En Lee created HDDS-17888:
-----------------------------------
Summary: OM gRPC open connection metric goes negative
Key: HDDS-17888
URL: https://issues.apache.org/jira/browse/HDDS-17888
Project: Apache Ozone
Issue Type: Bug
Components: Ozone Manager
Reporter: Chung-En Lee
Steps to reproduce:
# Start OM with the S3 gRPC server enabled
({{ozone.om.s3.grpc.server_enabled}}, default true).
# Open a TCP connection to the OM gRPC port and close it without sending
anything, as a TCP health check or port scan does. A failed TLS handshake has
the same effect.
Actual: {{NumOpenClientConnections}} in {{GrpcMetrics}} drops by 1 each time
and goes negative. For a connection that never became ready, gRPC calls
{{GrpcMetricsServerTransportFilter#transportTerminated}} with null attributes
and no matching {{transportReady}}, and the filter always decrements.
Expected: only connections that became ready are counted.
The metric is also a {{MutableCounterLong}} although it goes up and down, so
the Prometheus endpoint exports it as a counter, and every decrease looks like
a counter reset. It should be a gauge.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]