kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randall Hauch (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (KAFKA-6466) Kafka connect task sometimes fails on start-up
Date Tue, 23 Jan 2018 01:13:00 GMT

     [ https://issues.apache.org/jira/browse/KAFKA-6466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Randall Hauch resolved KAFKA-6466.
----------------------------------
    Resolution: Duplicate

> 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
>            Priority: Major
>
> 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