You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a micronaut based application. It uses micronaut-kafka to leverage Kafka Streams. We keep seeing this error: v1.0.0 t.n:kafka-admin-client-thread | adminclient-1 o.apache.kafka.clients.NetworkClient.handleDisconnections:937 | [AdminClient clientId=adminclient-1] Node -1 disconnected.
The reason for this is, we don't allow AdminClients in our envrionments and thus it keeps logging this message upto a point where going through logs is impossible as they are cluttered.
I see that this bean gets created by default if you are using any Kafka feature.
I would like to have an option where we can disable the creation of AdminClient.
For ex. something like: @Requires(property = AbstractKafkaConfiguration.PREFIX + ".admin.enabled", value = "true", defaultValue = "true")
Or is there any other way I can disable this bean from getting created without patching the micronaut lib?
Thanks!
The text was updated successfully, but these errors were encountered:
visheshruparelia
changed the title
Option disable creation of AdminClient
Optionally disable creation of AdminClient bean
Apr 28, 2023
Feature description
We have a micronaut based application. It uses micronaut-kafka to leverage Kafka Streams. We keep seeing this error:
v1.0.0 t.n:kafka-admin-client-thread | adminclient-1 o.apache.kafka.clients.NetworkClient.handleDisconnections:937 | [AdminClient clientId=adminclient-1] Node -1 disconnected.
The reason for this is, we don't allow AdminClients in our envrionments and thus it keeps logging this message upto a point where going through logs is impossible as they are cluttered.
I see that this bean gets created by default if you are using any Kafka feature.
I would like to have an option where we can disable the creation of AdminClient.
For ex. something like:
@Requires(property = AbstractKafkaConfiguration.PREFIX + ".admin.enabled", value = "true", defaultValue = "true")
Or is there any other way I can disable this bean from getting created without patching the micronaut lib?
Thanks!
The text was updated successfully, but these errors were encountered: