Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAFKA-18171: Unexpected Change in bootstrap.servers Behavior After Upgrade to 3.8.0 #18706

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
*/
public class ConfigDef {

private static final Pattern COMMA_WITH_WHITESPACE = Pattern.compile("\\s*,\\s*");
private static final Pattern COMMA_WITH_WHITESPACE_OR_ONLY_WHITESPACE = Pattern.compile("\\s*,\\s*|\\s+");

/**
* A unique Java object which represents the lack of a default value.
Expand Down Expand Up @@ -759,7 +759,7 @@ else if (value instanceof String)
if (trimmed.isEmpty())
return Collections.emptyList();
else
return Arrays.asList(COMMA_WITH_WHITESPACE.split(trimmed, -1));
return Arrays.asList(COMMA_WITH_WHITESPACE_OR_ONLY_WHITESPACE.split(trimmed, -1));
else
throw new ConfigException(name, value, "Expected a comma separated list.");
case CLASS:
Expand Down
Loading