-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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-18675: Add unit test to verify space separated brokers won't cause exception for 3.8 and 3.9 #18767
Conversation
clients/src/test/java/org/apache/kafka/clients/ClientUtilsTest.java
Outdated
Show resolved
Hide resolved
clients/src/test/java/org/apache/kafka/clients/ClientUtilsTest.java
Outdated
Show resolved
Hide resolved
clients/src/test/java/org/apache/kafka/clients/ClientUtilsTest.java
Outdated
Show resolved
Hide resolved
The failed test cases |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mingyen066 thanks for this patch. a couple of comments remains.
static Stream<List<String>> provideInvalidBrokerAddressTestCases() { | ||
return Stream.of( | ||
Collections.singletonList("localhost:9997\nlocalhost:9998\nlocalhost:9999"), | ||
Collections.singletonList("localhost:10000") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
localhost:10000
is valid, and the test can cause "expected" error due to "random.value"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this patch
clients/src/test/java/org/apache/kafka/clients/ClientUtilsTest.java
Outdated
Show resolved
Hide resolved
…se exception for 3.8 and 3.9 (#18767) Reviewers: Ken Huang <[email protected]>, TengYao Chi <[email protected]>, Chia-Ping Tsai <[email protected]>
Based on the discussion #18741 (comment)
Add unit test to ensure user can provide space-separated broker list
This change need to be backported to 3.8 as well
Committer Checklist (excluded from commit message)