Skip to content

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.

@sobychacko sobychacko requested a review from artembilan March 21, 2024 15:23
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.
@sobychacko sobychacko force-pushed the aot-runtime-hints-cleanup branch from 1dd1593 to 71cef5a Compare March 21, 2024 16:09
// 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
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