[
https://issues.apache.org/jira/browse/CAMEL-19651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17747003#comment-17747003
]
Rafał Gała commented on CAMEL-19651:
------------------------------------
Providing "" will cause partitioner.class property to be omitted by Camel:
{code:java}
private static <T> void addPropertyIfNotEmpty(Properties props, String key, T
value) {
if (ObjectHelper.isNotEmpty(value)) {
// value should be as-is
props.put(key, value);
}
} {code}
We should not remove this option because someone may still want to set the
partitioner class for some reason.
> Set empty partitioner as default
> --------------------------------
>
> Key: CAMEL-19651
> URL: https://issues.apache.org/jira/browse/CAMEL-19651
> Project: Camel
> Issue Type: Improvement
> Components: camel-kafka
> Reporter: Rafał Gała
> Priority: Minor
>
> org.apache.kafka.clients.producer.internals.DefaultPartitioner is deprecated.
> It is recommended to leave partitioner.class empty for default partitioning
> behavior.
>
> Proposed PR - https://github.com/apache/camel/pull/10821
--
This message was sent by Atlassian Jira
(v8.20.10#820010)