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

Missing ServiceLoader manifest (for Kafka >= 3.6) #310

Open
mkuthan opened this issue Mar 7, 2024 · 0 comments
Open

Missing ServiceLoader manifest (for Kafka >= 3.6) #310

mkuthan opened this issue Mar 7, 2024 · 0 comments
Assignees
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@mkuthan
Copy link

mkuthan commented Mar 7, 2024

Kafka Connect has added new plugin discovery with ServiceLoader since 3.6.
If the plugin doesn't register itself using ServiceLoader KafkaConnect reports:

One or more plugins are missing ServiceLoader manifests may not be usable with plugin.discovery=service_load: [
file:/opt/plugins/pubsub-group-kafka-connector-1.2.0.jar	com.google.pubsub.kafka.sink.CloudPubSubSinkConnector	sink	3.7.0
file:/opt/plugins/pubsub-group-kafka-connector-1.2.0.jar	com.google.pubsub.kafka.source.CloudPubSubSourceConnector	source	3.7.0
file:/opt/plugins/pubsub-group-kafka-connector-1.2.0.jar	com.google.pubsublite.kafka.sink.PubSubLiteSinkConnector	sink	3.7.0
file:/opt/plugins/pubsub-group-kafka-connector-1.2.0.jar	com.google.pubsublite.kafka.source.PubSubLiteSourceConnector	source	3.7.0
Read the documentation at https://kafka.apache.org/documentation.html#connect_plugindiscovery for instructions on migrating your plugins to take advantage of the performance improvements of service_load mode. To silence this warning, set plugin.discovery=only_scan in the worker config.

I would like to set plugin.discovery to service_load to speed up the cluster startup. But it requires proper plugin registration with ServiceLoader.

Now it's just a WARN but it could change in the future version of Kafka.

@samarthsingal samarthsingal added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

3 participants