Table of Contents |
---|
Status
Current state: Under DiscussionAccepted
JIRA:
Jira | ||||||
---|---|---|---|---|---|---|
|
Released: 2.3.0
Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).
...
Type: BOOLEAN
Explanation: This configuration controls whether the topic is automatically created when subscribing to a non-existent topic. A topic will be auto-created only if this configuration is set to true
and auto-topic creation is enabled on the broker using auto.create.topics.enable;
otherwise auto-topic creation is not permitted. This configuration must be set to true
when using brokers older than 0.11.
Default Value: TRUE
Priority: MEDIUM
Broker Config auto.create.topics.enable | Consumer Config allow.auto.create.topics | Auto-Topic Creation Permitted When Consumer Subscribes to Topic |
---|---|---|
true | true | Yes |
true | false | No |
false | true | No |
false | false | No |
Proposed Changes
Whether the topic should be auto-created will be included in MetadataRequest
sent by the consumer. In Kafka 0.11.0, MetadataRequest v4
had earlier introduced a way to specify if a topic should be auto-created when requesting metadata for specific topics.
...