mingyen066 opened a new pull request, #18741:
URL: https://github.com/apache/kafka/pull/18741

   Revert the stricter configuration validation changes(#16048, #16319) that 
broke compatibility when used pass space-separated broker list with version >= 
3.8
   Previously, a space-separated broker list would be parsed as an ArrayList 
containing a single string instead of three separate strings. The single string 
would then pass through the `getHost` function, which would extract only the 
first broker.
   
   After applying stricter configuration validation, using a space-separated 
broker list results in an exception.
   
   #### Why when the space separated broker list is provided, only the first 
broker is parsed as ArrayList with single string element
   Because we define the type of bootstrap server config as List, and List 
config will be parsed using comma separated pattern
   * 
https://github.com/apache/kafka/blob/0534e42c39749cccaf35bce6006faeeea0fbfc64/clients/src/main/java/org/apache/kafka/clients/producer/ProducerConfig.java#L367
   
   * 
https://github.com/apache/kafka/blob/d5e270482cf6601e1b635d69d311957e84d6bb59/clients/src/main/java/org/apache/kafka/common/config/ConfigDef.java#L762
   
   ### 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

Reply via email to