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

Remove org.apache.kafka native runtime hints #3147

Merged

Conversation

sobychacko
Copy link
Contributor

@sobychacko sobychacko commented Mar 21, 2024

  • 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.

Copy link
Member

@artembilan artembilan left a 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,
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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.

* 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.
// standard partitioners
org.apache.kafka.clients.producer.internals.DefaultPartitioner.class,
RoundRobinPartitioner.class,
org.apache.kafka.clients.producer.UniformStickyPartitioner.class,
Copy link
Member

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.

@artembilan artembilan added this to the 3.2.0-RC1 milestone Mar 21, 2024
@artembilan artembilan merged commit 8dae233 into spring-projects:main Mar 21, 2024
3 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