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

Simplify kafka client bootstrap server names and ports config #710

Merged
merged 11 commits into from
Jan 9, 2024
Merged

Simplify kafka client bootstrap server names and ports config #710

merged 11 commits into from
Jan 9, 2024

Conversation

akrambek
Copy link
Contributor

@akrambek akrambek commented Jan 5, 2024

Description

As a developer, I want to be able to copy and paste the bootstrap server host and port into zilla.yaml and not need to understand the details of tls server name or tcp host and port.

Fixes #619

@akrambek akrambek marked this pull request as ready for review January 6, 2024 04:24
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove 😉

}
else if (binding.routes.size() == 1 &&
binding.routes.get(0).matches() &&
options == null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't require options == null, right?


return resolved;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this method to the end of the class and make private static.

resolved = new InetSocketAddress(InetAddress.getByAddress(ipv6), destinationPortInet6);
break;
default:
throw new RuntimeException("Unexpected address kind");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's return null for other address types instead of throwing an exception, so no need for default case.

@jfallows jfallows merged commit fa8bfb2 into aklivity:develop Jan 9, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify kafka client bootstrap server names and ports config
2 participants