You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TopicBuilder in the end delegates to org.apache.kafka.clients.admin.NewTopic:
topic.configs(this.configs);
and that one is like this:
/**
* Set the configuration to use on the new topic.
*
* @param configs The configuration map.
* @return This NewTopic object.
*/
public NewTopic configs(Map<String, String> configs) {
So, nothing what we can do here in Spring until Apache Kafka client solves that for all of us.
Please, consider to raise this concern against Apache Kafka itself.
In what version(s) of Spring for Apache Kafka are you seeing this issue?
2.8.2 and Prior
Describe the bug
When attempting to use
NewTopic
to configure properties likeretention.ms
, the API currently only allows those properties to be strings:However,
retention.ms
is aLong
type and Kafka will error out when trying to set it this way:(I was trying to set it to 1 day retention)
To Reproduce
Steps to reproduce the behavior.
Expected behavior
Map<String, Object>
for data types.The text was updated successfully, but these errors were encountered: