You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2026/05/02 18:14:00 UTC

[jira] [Created] (KAFKA-20546) Lazily call generateNewClientId when handling GetTelemetrySubscriptionsRequest

Chia-Ping Tsai created KAFKA-20546:
--------------------------------------

             Summary: Lazily call generateNewClientId when handling GetTelemetrySubscriptionsRequest
                 Key: KAFKA-20546
                 URL: https://issues.apache.org/jira/browse/KAFKA-20546
             Project: Kafka
          Issue Type: Improvement
            Reporter: Chia-Ping Tsai


KIP-1313 will let GetTelemetrySubscriptionsRequest carry the client instance id, so it is time to apply the lazy policy

https://cwiki.apache.org/confluence/x/Jpc8G

related code: https://github.com/apache/kafka/blob/trunk/server/src/main/java/org/apache/kafka/server/ClientMetricsManager.java#L165

        Uuid clientInstanceId = Optional.ofNullable(request.data().clientInstanceId())
            .filter(id -> !id.equals(Uuid.ZERO_UUID))
            .orElse(generateNewClientId());



--
This message was sent by Atlassian Jira
(v8.20.10#820010)