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
I used franz-go to send a CreateTopicsRequest with the following payload:
and I get the following response back:
The unexpected behaviour is:
NumPartitions is set to -1
ReplicationFactor is set to -1
It reports that cleanup.policy is set at the TopicSource, but it wasn't part of the request. The reported value of 1 is also odd.
What should have happened instead?
NumPartitions should report how many partitions were created for this topic. This is especially useful when requesting the default number of partitions.
ReplicationFactor should report how many replicas every partition has for this topic. This is especially useful when requesting the default number of partitions.
Configs should only report topic-level configs with their actual value. Since cleanup.policy was not set as part of the request it should not be part of the response. Also the value of 1 is an invalid entry, it should only allow delete, compact or compact,delete for this field.
How to reproduce the issue?
Send a CreateTopic request with v5+ (probably can use rpk)
Look at CreateTopic response
Additional information
Please attach any relevant logs, backtraces, or metric charts.
The text was updated successfully, but these errors were encountered:
Quick note before I forget - for the cleanup.policy config, 5 is the correct source here, mapping to "default config" in both Redpanda and Apache Kafka.
Other aspects of this issue are repro'ed, validated, and fixes are WIP.
@oleiman I think Martin is returning to the Value, not the Source -- the Value is "1", rather than "cleanup,delete"
Yup, the numeric cleanup policy value has been fixed :)
reports that cleanup.policy is set at the TopicSource
I assumed this was referring to the Source property on the cleanup policy config in the response, but I might have misunderstood. Maybe @weeco can comment.
Version & Environment
Redpanda version: (use
rpk version
): v23.2.19What went wrong?
I used franz-go to send a
CreateTopicsRequest
with the following payload:and I get the following response back:
The unexpected behaviour is:
NumPartitions
is set to -1ReplicationFactor
is set to -1cleanup.policy
is set at the TopicSource, but it wasn't part of the request. The reported value of1
is also odd.What should have happened instead?
NumPartitions
should report how many partitions were created for this topic. This is especially useful when requesting the default number of partitions.ReplicationFactor
should report how many replicas every partition has for this topic. This is especially useful when requesting the default number of partitions.cleanup.policy
was not set as part of the request it should not be part of the response. Also the value of1
is an invalid entry, it should only allowdelete
,compact
orcompact,delete
for this field.How to reproduce the issue?
Additional information
Please attach any relevant logs, backtraces, or metric charts.
The text was updated successfully, but these errors were encountered: