hi Jose

> I am not sure. I have to look at that code but doesn't
"Admin#describeConfigs" only return dynamic configuration for the
controller? Most users configure the controller using the server
properties file. My current understanding is that values coming from
the properties file won't show up in Admin#describeConfigs.

The returned DescribeConfigsResult include both dynamic and static (from
properties) configs, so we can get both listeners and advertised.listeners
from `Admin#describeConfigs`.

see
https://github.com/apache/kafka/blob/trunk/clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/admin/StaticBrokerConfigTest.java#L57
for example

Best,
Chia-Ping


José Armando García Sancio <jsan...@confluent.io.invalid> 於 2025年4月4日 週五
上午12:05寫道:

> Hi Chia,
>
> On Thu, Apr 3, 2025 at 10:24 AM Chia-Ping Tsai <chia7...@apache.org>
> wrote:
> > We propose to use `Admin#describeConfigs` to get the configs for
> specific controller if the bootstrap.controllers is configured. This
> approach is similar to what `MetadataQuorumCommand` does, and the
> difference is `MetadataQuorumCommand` read those configs from local file
> and this KIP gets those configs by `Admin#describeConfigs`
>
> I am not sure. I have to look at that code but doesn't
> "Admin#describeConfigs" only return dynamic configuration for the
> controller? Most users configure the controller using the server
> properties file. My current understanding is that values coming from
> the properties file won't show up in Admin#describeConfigs.
>
> Thanks,
> --
> -José
>

Reply via email to