kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Koval (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-6466) Kafka connect task sometimes fails on start-up
Date Mon, 22 Jan 2018 12:39:00 GMT
Alexander Koval created KAFKA-6466:
--------------------------------------

             Summary: Kafka connect task sometimes fails on start-up
                 Key: KAFKA-6466
                 URL: https://issues.apache.org/jira/browse/KAFKA-6466
             Project: Kafka
          Issue Type: Bug
          Components: KafkaConnect
    Affects Versions: 1.0.0
            Reporter: Alexander Koval


We use kafka connect for indexing into Elasticsearch. Sometimes when we updating our kafka-connect
application one or several tasks get {{FAILED}} status. Restarting connector with failed task
usually helps.

 

Below is an example of the failed task's stacktrace:
{code:java}
java.lang.IllegalArgumentException: A metric named 'MetricName [name=offset-commit-max-time-ms,
group=connector-task-metrics, description=The maximum time in milliseconds taken by this task
to commit offsets., tags={connector=prom-ua-catalog-product, task=2}]' already exists, can't
register another one.
    at org.apache.kafka.common.metrics.Metrics.registerMetric(Metrics.java:532)
    at org.apache.kafka.common.metrics.Sensor.add(Sensor.java:256)
    at org.apache.kafka.common.metrics.Sensor.add(Sensor.java:241)
    at org.apache.kafka.connect.runtime.WorkerTask$TaskMetricsGroup.<init>(WorkerTask.java:328)
    at org.apache.kafka.connect.runtime.WorkerTask.<init>(WorkerTask.java:69)
    at org.apache.kafka.connect.runtime.WorkerSinkTask.<init>(WorkerSinkTask.java:98)
    at org.apache.kafka.connect.runtime.Worker.buildWorkerTask(Worker.java:449)
    at org.apache.kafka.connect.runtime.Worker.startTask(Worker.java:404)
    at org.apache.kafka.connect.runtime.distributed.DistributedHerder.startTask(DistributedHerder.java:852)
    at org.apache.kafka.connect.runtime.distributed.DistributedHerder.access$1600(DistributedHerder.java:108)
    at org.apache.kafka.connect.runtime.distributed.DistributedHerder$13.call(DistributedHerder.java:866)
    at org.apache.kafka.connect.runtime.distributed.DistributedHerder$13.call(DistributedHerder.java:862)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748){code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message