-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Remove org.apache.kafka native runtime hints #3147
Remove org.apache.kafka native runtime hints #3147
Conversation
sobychacko
commented
Mar 21, 2024
•
edited
Loading
edited
- Since several of the native runtime hints that Spring for Apache Kafka provides for org.apahce.kafka classes are available via the graalvm-reachability-metadata repository (https://github.com/oracle/graalvm-reachability-metadata), we are no longer keeping these runtime hints in Spring for Apache Kafka since version 3.2.0. This applies to both kafka-client classes and Kafka Streams classes.
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.
There is also a typo in the commit message about Spring for Apache Kafka version.
I believe it has to be the current one - 3.2
// standard partitioners | ||
org.apache.kafka.clients.producer.internals.DefaultPartitioner.class, | ||
RoundRobinPartitioner.class, | ||
org.apache.kafka.clients.producer.UniformStickyPartitioner.class, |
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.
Why do we still keep this Kafka client classes here?
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.
Missing in the metadata repo.
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.
Apparently both of these classes are deprecated now.
And according to their Javadocs they are not recommended to be used at all.
So, it is safe to remove them from here even now.
spring-kafka/src/main/java/org/springframework/kafka/aot/KafkaRuntimeHints.java
Show resolved
Hide resolved
* Since several of the native runtime hints that Spring for Apache Kafka provides for org.apahce.kafka classes are available via the graalvm-reachability-metadata repository (https://github.com/oracle/graalvm-reachability-metadata), we are no longer keeping these runtime hints in Spring for Apache Kafka since version 3.2.0. This applies to both kafka-client classes and Kafka Streams classes.
1dd1593
to
71cef5a
Compare
// standard partitioners | ||
org.apache.kafka.clients.producer.internals.DefaultPartitioner.class, | ||
RoundRobinPartitioner.class, | ||
org.apache.kafka.clients.producer.UniformStickyPartitioner.class, |
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.
Apparently both of these classes are deprecated now.
And according to their Javadocs they are not recommended to be used at all.
So, it is safe to remove them from here even now.