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
Currently, the only way to create a topic is to ensure kafka's auto.create.topics.enable is set to true (which it is by default) and then to publish a message on a non-existent topic (which will cause a panic).
This is workable, but kind of dirty feeling to me. If I want to ensure I don't pollute an existing topic with throwaway "create" messages, I need to first check if a topic exists before attempting to create it using this approach.
It would be much nicer if the internal createTopics mechanism were exposed to support this use case.
The text was updated successfully, but these errors were encountered:
Currently, the only way to create a topic is to ensure kafka's
auto.create.topics.enable
is set totrue
(which it is by default) and then to publish a message on a non-existent topic (which will cause a panic).This is workable, but kind of dirty feeling to me. If I want to ensure I don't pollute an existing topic with throwaway "create" messages, I need to first check if a topic exists before attempting to create it using this approach.
It would be much nicer if the internal
createTopics
mechanism were exposed to support this use case.The text was updated successfully, but these errors were encountered: