Open addios41 opened 1 year ago
I open a new terminal and start connect-standalone. It worked, somehow. Not sure if anyone knows a reason and how to fix?
I've ran at the same issue while using an MySQL connector, and attaching a debugger seems to indicate some kind of deadlock while creating the source connectors:
"pool-3-thread-1@6805" prio=5 tid=0x33 nid=NA waiting for monitor entry
java.lang.Thread.State: BLOCKED
blocks Thread-30@6807
waiting for Thread-30@6807 to release lock on <0x1aa6> (a org.apache.kafka.connect.runtime.standalone.StandaloneHerder)
at org.apache.kafka.connect.runtime.standalone.StandaloneHerder$ConfigUpdateListener.onTaskConfigUpdate(StandaloneHerder.java:391)
at org.apache.kafka.connect.storage.MemoryConfigBackingStore.putTaskConfigs(MemoryConfigBackingStore.java:129)
- locked <0x1ac8> (a org.apache.kafka.connect.storage.MemoryConfigBackingStore)
at org.apache.kafka.connect.runtime.standalone.StandaloneHerder.updateConnectorTasks(StandaloneHerder.java:358)
at org.apache.kafka.connect.runtime.standalone.StandaloneHerder.lambda$null$3(StandaloneHerder.java:240)
at org.apache.kafka.connect.runtime.standalone.StandaloneHerder$$Lambda$561.1643241998.run(Unknown Source:-1)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.lang.Thread.run(Thread.java:829)
[...]
"Thread-30@6807" prio=5 tid=0x35 nid=NA waiting for monitor entry
java.lang.Thread.State: BLOCKED
blocks pool-3-thread-1@6805
waiting for pool-3-thread-1@6805 to release lock on <0x1ac8> (a org.apache.kafka.connect.storage.MemoryConfigBackingStore)
at org.apache.kafka.connect.storage.MemoryConfigBackingStore.putTaskConfigs(MemoryConfigBackingStore.java:121)
at org.apache.kafka.connect.runtime.standalone.StandaloneHerder.updateConnectorTasks(StandaloneHerder.java:358)
at org.apache.kafka.connect.runtime.standalone.StandaloneHerder.requestTaskReconfiguration(StandaloneHerder.java:255)
- locked <0x1aa6> (a org.apache.kafka.connect.runtime.standalone.StandaloneHerder)
at org.apache.kafka.connect.runtime.HerderConnectorContext.requestTaskReconfiguration(HerderConnectorContext.java:50)
at org.apache.kafka.connect.runtime.WorkerConnector$WorkerConnectorContext.requestTaskReconfiguration(WorkerConnector.java:501)
at io.confluent.connect.jdbc.source.TableMonitorThread.run(TableMonitorThread.java:86)
Here's the full report I've obtained from the debugger: threads_report.txt.
Also, it doesn't seem to hang every time, but it happens quite often; killing the Java process and restarting it will make it work eventually
Has anyone found a way to fix this ? I have exactly the same symptoms: periodically works .. but mostly does not. Connector never goes into a running state .. just hangs.
Temporary workaround : I switched to using the aiven JDBC connector and it seems to currently be free of this deadlock problem.
get the latest release here (on the right side panel: v 6.8.0 as of today) : https://github.com/aiven/jdbc-connector-for-apache-kafka
The only things I changed in my configurations were to use its entire folder of jars rather than confluent's... and their class name is different : io.aiven.connect.jdbc.JdbcSourceConnector
Works smoothly with most of the same options as the confluent one
Hi, Any one found a way to fix this issue? I am getting the same issue and using the latest version of all jars & java.
just want to share that i switch to "kafka-connect-jdbc-10.3.0" working fine with this jar. so may be some deadlock issue in the lastest version of jar.
I have same problem. In config i am using table.whitelist, when i using topic.prefix it will be hang. After i remove topic.prefix from config, it will be fine. Temporary solution just remove topic.prefix. I think it is a bug that need repair.
Happens to me as well. When I remove topic.prefix it says:
Connector configuration is invalid and contains the following 1 error(s):
The 'topic.prefix' value is invalid: A value is required
You can also find the above list of errors at the endpoint `/connector-plugins/{connectorType}/config/validate`
just want to share that i switch to "kafka-connect-jdbc-10.3.0" working fine with this jar. so may be some deadlock issue in the lastest version of jar.
I was having this issue with the latest version (10.7.6) so I tried 10.3.6 and still got the error. Using 10.3.0 works though.
I thought I had a fix before then because I had been loading the config file during connect startup, and the first time I tried starting connect first, then adding the connector after startup it worked. Seems to have been a fluke though since the next 3 times I tried that it failed with the same deadlock issue.
I tried to start connect-standalone to connect to mySQL. When starting, it got hang as per the log and nothing showed up.
connect-standalone.properties
source-connector.properties