smjn opened a new pull request, #24383: URL: https://github.com/apache/kafka/pull/24383
Define a validator on errors.deadletterqueue.topic.name instead of checking it inline in GroupConfig.validateValues. The rules are unchanged (blank is allowed, the name must not start with "__" and must be a valid topic name), but they now apply wherever the ConfigDef is parsed, including callers that do not go through GroupConfig.validate. Since the config doesn't need any cross-config checks - there is no need to invoke it in validate or a separate method. The public method validate already includes a call to parse which should catch any issues so, no code path is missed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
