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

add checkClassName regex func #11303

Merged
merged 4 commits into from
Oct 16, 2024
Merged

Conversation

ryanjclark
Copy link
Contributor

We have a custom wrapper on the ConnectDistributed class which does not match the regex check here. This PR expands the regex to be more generous but is still reasonable, especially considering the properties check afterwards.

Closes an issue in tabular.io/iceberg-kafka-connect

@bryanck
Copy link
Contributor

bryanck commented Oct 16, 2024

Thanks for the PR @ryanjclark !

@@ -406,6 +406,10 @@ public JsonConverter jsonConverter() {
return jsonConverter;
}

public static boolean checkClassName(String className) {
Copy link
Contributor

Choose a reason for hiding this comment

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

One nit, can you make this private?

@@ -406,6 +406,10 @@ public JsonConverter jsonConverter() {
return jsonConverter;
}

static boolean checkClassName(String className) {
Copy link
Contributor

Choose a reason for hiding this comment

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

One more nit, could you add @VisibleForTesting? That makes it clear why it isn't private.

@bryanck bryanck merged commit 3c6c626 into apache:main Oct 16, 2024
14 checks passed
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.

2 participants