kafka/clients
Bill Bejeck f35f94b3e6
CI / build (push) Has been cancelled Details
KAFKA-19504: Remove unused metrics reporter initialization in KafkaAdminClient (#20166)
The `AdminClient` adds a telemetry reporter to the metrics reporters
list in the constructor.  The problem is that the reporter was already
added in the `createInternal` method.  In the `createInternal` method
call, the `clientTelemetryReporter` is added to a
`List<MetricReporters>` which is passed to the `Metrics` object, will
get closed when `Metrics.close()` is called.  But adding a reporter to
the reporters list in the constructor is not used by the `Metrics`
object and hence doesn't get closed, causing a memory leak.

All related tests pass after this change.

Reviewers: Apoorv Mittal <apoorvmittal10@apache.org>, Matthias J. Sax
 <matthias@confluent.io>, Chia-Ping Tsai <chia7712@gmail.com>,
 Jhen-Yung Hsu <jhenyunghsu@gmail.com>
2025-07-14 20:21:12 -04:00
..
clients-integration-tests/src/test KAFKA-19397: Ensure consistent metadata usage in produce request and response (#19964) 2025-07-07 19:52:15 +08:00
src KAFKA-19504: Remove unused metrics reporter initialization in KafkaAdminClient (#20166) 2025-07-14 20:21:12 -04:00
.gitignore