Connect Timeout error when starting Confluent connector tasks post upgrade

  Kiến thức lập trình

We have java sink connectors recently upgraded kafka connect from 5.3.1 to 7.3.1.

Post upgrade, we have noticed intermittent Timeout errors when starting the connector tasks, resulting connector failure. Stacktrace below:

Event: [Worker clientId=connect-1, groupId=-connector] Failed to reconfigure connector’s tasks (-connector), retrying after backoff:

Stacktrace: IO Error trying to forward REST request: Connect Timeout | at | at org.apache.kafka.connect.runtime.distributed.DistributedHerder.lambda$reconfigureConnector$32( | at java.base/java.util.concurrent.Executors$ | at java.base/ | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker( | at java.base/java.util.concurrent.ThreadPoolExecutor$ | at java.base/ |Caused by: java.util.concurrent.ExecutionException: Connect Timeout | at org.eclipse.jetty.client.util.FutureResponseListener.getResult( | at org.eclipse.jetty.client.util.FutureResponseListener.get( | at org.eclipse.jetty.client.HttpRequest.send( | at | … 6 more |Caused by: Connect Timeout | at$ | at java.base/java.util.concurrent.Executors$ | at java.base/ | at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ | … 3 more

Source: org.apache.kafka.connect.runtime.distributed.DistributedHerder

Can you please advice why this timeout is happening? Or at least what exactly it’s trying to do that’s timing out?