Hi! If topic auto-creation is enabled on brokers, ...
# general
g
Hi! If topic auto-creation is enabled on brokers, is there a way to disable it programmatically? For example, is there a way to prevent the creation of a producer or the sending of a message if the targeted topic does not exist?
m
You could disable auto-topic creation on a namespace, via admin API
g
Thanks Matteo. Is there a way to have more control? I'm happy with auto-topic creation, except for some specific topics within the same namespace.
m
Uhm, I don’t think that it’s possible to control that at the topic-level policies
g
ok, thx
k
You can also disable it at the broker level.
pulsar-admin brokers update-dynamic-config -c allowAutoTopicCreation -v false
👍 1