-
Notifications
You must be signed in to change notification settings - Fork 70
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
chore: update kafka to 3.4 #210
Conversation
// Intentionally using deprecated method to avoid pinning newer Kafka client | ||
if (adminClient != null) adminClient.close(1, TimeUnit.SECONDS); | ||
if (adminClient != null) adminClient.close(); |
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.
Update admin close to undefined timeout as method with timeunit is not available anymore.
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.
What's the minimum Kafka version supported now? We should probably document this somewhere.
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.
With this change we fallback to a close method that is supported across versions -- if we were to use .close(Duration)
, then it will limit versions; also sniffer was complaining about Duration as it's JDK 8 AFAIR.
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.
I see. So we've kept library version compatibility, but now the behavior is changed - it will wait indefinitely for close now. I guess that's not such a big deal since we already wait indefinitely to close the KafkaProducer
. Thanks for the explanation!
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.
I guess the comment on line 308 can be removed now, though, since we're no longer using a deprecated method.
No description provided.