Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Status

Current state: Under DiscussionDiscussion thread:  Adopted

Discussion threadmsg81955 

Voting thread: msg82225here <- Needs to be updated once message posts

JIRA: KAFKA-3073 

PR: kafka#4151 

Released: 1.1.0

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

...

This KIP introduces a new 'topics.patternregex' configuration option for Kafka Connect sinks that expects a string compatible with Java's regex Pattern class. Users may specify only one of 'topics' or 'topics.patternregex'.

Proposed Changes

If 'topics.patternregex' is specified, its string value will be used to instantiate a regex Pattern which will be passed to subscribe instead of a list of strings.

If both 'topics.regex' and 'topics' are specified, a ConfigException will be thrown to prevent startup.

Compatibility, Deprecation, and Migration Plan

'topics.patternregex' will default to null the empty string "" so that existing configurations will not be affected by the additional option.

...

Additional regular expression specifications could be accommodated in the future by adding an additional configuration option 'topics.patternregex.type'.