kafka/clients
Bill Bejeck dd82542493
CI / build (push) Waiting to run 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:19:16 -04:00
..
clients-integration-tests/src/test MINOR: Move partitions == 0 logic from waitForTopic to waitTopicDeletion (#20108) 2025-07-10 01:10:20 +08:00
src KAFKA-19504: Remove unused metrics reporter initialization in KafkaAdminClient (#20166) 2025-07-14 20:19:16 -04:00
.gitignore KAFKA-4848: Fix retryWithBackoff deadlock issue 2017-03-20 21:56:15 -07:00