kirktrue opened a new pull request, #14768: URL: https://github.com/apache/kafka/pull/14768
Per [KIP-289 (Improve the default group id behavior in `KafkaConsumer`)](https://cwiki.apache.org/confluence/display/KAFKA/KIP-289%3A+Improve+the+default+group+id+behavior+in+KafkaConsumer), the `group.id` configuration should no longer allow string values that—when trimmed of any whitespace—are zero length. By virtue of the existing `AbstractConfig` logic, string values are trimmed of whitespace on use. Prior to this change, the constructors of both `LegacyKafkaConsumer` and `AsyncKafkaConsumer` checked the value, and if it was empty, would log a warning. Now it is enforced via an `InvalidGroupIdException` if the value is empty. There is no attempt to prevent the creation of a `ConsumerConfig` that contains an invalid `group.id` value. It is only checked and enforced on use when creating a `Consumer` instance. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org