[
https://issues.apache.org/jira/browse/KAFKA-19514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jhen-Yung Hsu updated KAFKA-19514:
----------------------------------
Description:
Currently, Kafka clients (Producer, Consumer, AdminClient) widely expose and
accept configuration via java.util.Properties in their public API.
Properties has a few drawbacks, like the ones pointed out in
https://issues.apache.org/jira/browse/KAFKA-19213, when a properties object
with "defaults" is passed as a Map, the "defaults" is always ignored; It also
has unnecessary concurrency overhead. On the other hand, Map is a more modern
and flexible option.
was:
Currently, Kafka clients (Producer, Consumer, AdminClient) widely expose and
accept configuration via java.util.Properties in their public API.
Properties has a few drawbacks, like the ones pointed out in
https://issues.apache.org/jira/browse/KAFKA-19213, and it has unnecessary
concurrency overhead. On the other hand, Map is a more modern and flexible
option.
In addition, when a properties object with "defaults" is passed as a Map, the
"defaults" is always ignored.
> Deprecate and remove Properties from public API
> -----------------------------------------------
>
> Key: KAFKA-19514
> URL: https://issues.apache.org/jira/browse/KAFKA-19514
> Project: Kafka
> Issue Type: Bug
> Reporter: Jhen-Yung Hsu
> Assignee: Jhen-Yung Hsu
> Priority: Minor
>
> Currently, Kafka clients (Producer, Consumer, AdminClient) widely expose and
> accept configuration via java.util.Properties in their public API.
> Properties has a few drawbacks, like the ones pointed out in
> https://issues.apache.org/jira/browse/KAFKA-19213, when a properties object
> with "defaults" is passed as a Map, the "defaults" is always ignored; It also
> has unnecessary concurrency overhead. On the other hand, Map is a more modern
> and flexible option.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)