GitHub user jklukas opened a pull request: https://github.com/apache/kafka/pull/4251
KAFKA-6253: Improve sink connector topic regex validation KAFKA-3073 added topic regex support for sink connectors. The addition requires that you only specify one of topics or topics.regex settings. This is being validated in one place, but not during submission of connectors. This PR adds validation at `AbstractHerder.validateConnectorConfig` and `WorkerConnector.initialize`. This adds a test of the new behavior to `AbstractHerderTest`. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) You can merge this pull request into a Git repository by running: $ git pull https://github.com/jklukas/kafka connect-topics-validation Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/4251.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #4251 ---- commit 830f1b627f6ba2d76f72626fac0741380d03a010 Author: Jeff Klukas <j...@klukas.net> Date: 2017-11-22T17:42:56Z KAFKA-6253: Improve sink connector topic regex validation ---- ---