[ https://issues.apache.org/jira/browse/KAFKA-3719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15287422#comment-15287422 ]
Gwen Shapira commented on KAFKA-3719: ------------------------------------- AFAIK, underscores are not legal in hostnames. See https://tools.ietf.org/html/rfc952 " A "name" (Net, Host, Gateway, or Domain name) is a text string up to 24 characters drawn from the alphabet (A-Z), digits (0-9), minus sign (-), and period (.). Note that periods are only allowed when they serve to delimit components of "domain style names". (See RFC-921, "Domain Name System Implementation Schedule", for background). No blank or space characters are permitted as part of a name. No distinction is made between upper and lower case. The first character must be an alpha character. The last character must not be a minus sign or period. A host which serves as a GATEWAY should have "-GATEWAY" or "-GW" as part of its name. Hosts which do not serve as Internet gateways should not use "-GATEWAY" and "-GW" as part of their names. A host which is a TAC should have "-TAC" as the last part of its host name, if it is a DoD host. Single character names or nicknames are not allowed." > Pattern regex org.apache.kafka.common.utils.Utils.HOST_PORT_PATTERN is too > narrow > --------------------------------------------------------------------------------- > > Key: KAFKA-3719 > URL: https://issues.apache.org/jira/browse/KAFKA-3719 > Project: Kafka > Issue Type: Bug > Reporter: Balazs Kossovics > Priority: Trivial > > In our continuous integration environment the Kafka brokers run on hosts > containing underscores in their names. The current regex splits incorrectly > these names into host and port parts. > I could submit a pull request if someone confirms that this is indeed a bug. -- This message was sent by Atlassian JIRA (v6.3.4#6332)