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-18675: Add unit test to verify space separated brokers won't cause exception for 3.8 and 3.9 #18767

Conversation

mingyen066
Copy link
Contributor

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)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@mingyen066 mingyen066 changed the title KAFKA-18675: Add testValidBrokerList to ClientUtilsTest KAFKA-18675: Add unit test to verify space separated brokers won't cause exception for 3.8 and 3.9 Jan 31, 2025
@mingyen066
Copy link
Contributor Author

The failed test cases shouldWorkWithRebalance seems unrelated.

Copy link
Member

@chia7712 chia7712 left a 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")
Copy link
Member

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"

Copy link
Contributor

@m1a2st m1a2st left a 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

@chia7712 chia7712 merged commit c215b8b into apache:3.9 Feb 5, 2025
1 check failed
chia7712 pushed a commit that referenced this pull request Feb 5, 2025
…se exception for 3.8 and 3.9 (#18767)

Reviewers: Ken Huang <[email protected]>, TengYao Chi <[email protected]>, Chia-Ping Tsai <[email protected]>
@mingyen066 mingyen066 deleted the KAFKA-18675-Add-unit-tests-for-KAFKA-18171-to-verify-the-parser-of-bootstrap.servers branch February 6, 2025 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants