Table of Contents |
---|
Status
Current state: Under Discussion
...
Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).
Motivation
This KIP concerns the following configs, but we'll talk about bootstrap.servers
for concreteness.
...
We should tighten up what is accepted by Utils.getHost
and Utils.getPort
so that a protocol is not accepted.
Public Interfaces
No changes, since the implementation of validation for `bootstrap.servers` will be aligned with the existing documentation.
Proposed Changes
Remove the .*?
from the pattern in Utils.HOST_PORT_PATTERN
.
Compatibility, Deprecation, and Migration Plan
Any configs listed in the motivation section which currently include a protocol will become invalid. Users will have to remove the protocol from their configs if they have included one. Since this is a breaking change it will be implemented in Kafka 3.0 to minimise surprises.