kafka debezium连接器故障,无法关闭生产者错误

时间:2019-12-17 06:36:40

标签: apache-kafka debezium

在PostgresDB上将Kafka debezium连接器用于CDC。 Kafka debezium连接器失败,无法关闭生产者错误。

使用debezium 0.10.0版本。

[2019-12-17 06:30:08,640] ERROR [Producer clientId=connector-test] Interrupted while joining ioThread (org.apache.kafka.clients.producer.KafkaProducer:1172)
java.lang.InterruptedException
    at java.base/java.lang.Object.wait(Native Method)
    at java.base/java.lang.Thread.join(Thread.java:1313)
    at org.apache.kafka.clients.producer.KafkaProducer.close(KafkaProducer.java:1169)
    at org.apache.kafka.clients.producer.KafkaProducer.close(KafkaProducer.java:1146)
    at org.apache.kafka.connect.runtime.WorkerSourceTask.close(WorkerSourceTask.java:155)
    at org.apache.kafka.connect.runtime.WorkerTask.doClose(WorkerTask.java:156)
    at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:183)
    at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:227)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
[2019-12-17 06:30:08,641] INFO [Producer clientId=connector-test] Proceeding to force close the producer since pending requests could not be completed within timeout 30000 ms. (org.apache.kafka.clients.producer.KafkaProducer:1179)
[2019-12-17 06:30:08,641] WARN Could not close producer (org.apache.kafka.connect.runtime.WorkerSourceTask:157)
org.apache.kafka.common.errors.InterruptException: java.lang.InterruptedException
    at org.apache.kafka.clients.producer.KafkaProducer.close(KafkaProducer.java:1171)
    at org.apache.kafka.clients.producer.KafkaProducer.close(KafkaProducer.java:1146)
    at org.apache.kafka.connect.runtime.WorkerSourceTask.close(WorkerSourceTask.java:155)
    at org.apache.kafka.connect.runtime.WorkerTask.doClose(WorkerTask.java:156)
    at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:183)
    at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:227)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.InterruptedException
    at java.base/java.lang.Object.wait(Native Method)
    at java.base/java.lang.Thread.join(Thread.java:1313)
    at org.apache.kafka.clients.producer.KafkaProducer.close(KafkaProducer.java:1169)
    ... 10 more```

0 个答案:

没有答案