Open vtstanescu opened 3 months ago
checking on this
Hi, @bdesert! Any updates on this?
I'm wondering if this can be caused by missing network connectivity between the workers of the Kafka Connect cluster.
We are using the distributed connect, so one worker is the leader of the connector. I'm not sure about the implementation details in Kafka Connect, but I assume the leader worker of the connector generates the "rendered" config by reading data from the config providers and then passes the "rendered" config to all workers that are running tasks for the connector.
If the workers cannot communicate among themselves, eg. EC2 security group rules are missing, it may cause this issue.
We are using a self-hosted Kafka Connect cluster in AWS, and will test the usage of secretsmanager
config provider again, to see if the issue reoccurs after we've added the needed SGR to allow traffic between the Kafka Connect workers. I don't have high expectations, though, as we've seen the same NPEs when running our connector in Amazon MSK Connect service, but let's see.
hi @vtstanescu , ok, got my head around it and I think I have solution for this. I think the issues is caused by some type of expiration happening because I keep the builder open without rebuilding it. I think, if we catch this exception and rebuild the builder, this should solve the issue. alternatively we can create the builder every time, but this will be expensive (performance wise), as kafka connect is re-evaluating configuration all the time, using cached client would be way faster. so, I'll provide a fix in the next week or two and will tag you on PR to review
Hello,
We are encountering NPEs when using the Config provider for Secrets Manager, we haven't tried any other. These seem to occur randomly, but frequently, when a worker or connector is started for the first time. We eventually had to hardcode values in the connector config to get us going in a connector running across multiple workers.
Kafka version is 3.6.0 Java distribution and version is Amazon Corretto 22 MSK config providers version is 0.2.0
A connector
/stop
&/resume
seemed to resolve the issue in the past when we were using only 1 worker, but with multiple workers, the issues pops up randomly on 1 or more workers.