Versions Compared

Key

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

Table of Contents

This page is meant as a template for writing a KIP. To create a KIP choose Tools->Copy on this page and modify with your content and replace the heading with the next KIP number and a description of your issue. Replace anything in italics with your own description.

Status

Current state: Under Discussion Adopted

Discussion thread: msg81955 

Voting thread: msg82225here [Change the link from the KIP proposal email archive to your own email thread]

JIRA: KAFKA-3073 [Change the link from KAFKA-1 to your own ticket] 

PRkafka#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'.