Migrate client and Admin APIs removed in Kafka 4.0
ProprietaryReplaces client, Admin and security APIs that Kafka 4.0 removed with the replacements the Kafka 4.0 upgrade notes name.
io. moderne. kafka. MigrateRemovedClientApismod run . --recipe= io. moderne. kafka. MigrateRemovedClientApisInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Change method name
org.apache.kafka.clients.admin.DescribeTopicsResult all()toallTopicNames - Change method name
org.apache.kafka.clients.admin.DeleteTopicsResult values()totopicNameValues - Change method name
org.apache.kafka.clients.consumer.MockConsumer setException(org.apache.kafka.common.KafkaException)tosetPollException - Change type
NotLeaderForPartitionExceptiontoNotLeaderOrFollowerException - Change type
org.apache.kafka.common.security.oauthbearer.secured.OAuthBearerLoginCallbackHandlertoorg.apache.kafka.common.security.oauthbearer.OAuthBearerLoginCallbackHandler - Change type
org.apache.kafka.common.security.oauthbearer.secured.OAuthBearerValidatorCallbackHandlertoorg.apache.kafka.common.security.oauthbearer.OAuthBearerValidatorCallbackHandler - Replace
Stringliteral - Replace
Stringliteral