java.util.ConcurrentModificationException: KafkaConsumer is not safe for multi-threaded access

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Unknown author, 10 months ago
KafkaConsumer is not safe for multi-threaded access
via Google Groups by Saravanan Tirugnanum, 1 year ago
KafkaConsumer is not safe for multi-threaded access
via Apache's JIRA Issue Tracker by Ashish K Singh, 1 year ago
KafkaConsumer is not safe for multi-threaded access
via Google Groups by Uday Menon, 4 months ago
via GitHub by thanhtien522
, 10 months ago
KafkaConsumer is not safe for multi-threaded access
java.util.ConcurrentModificationException: KafkaConsumer is not safe for multi-threaded access
at org.apache.kafka.clients.consumer.KafkaConsumer.acquire(KafkaConsumer.java:1282)
at org.apache.kafka.connect.runtime.WorkerSinkTask.close(WorkerSinkTask.java:128)
at org.apache.kafka.connect.runtime.Worker.stopTask(Worker.java:313)
at org.apache.kafka.connect.runtime.distributed.DistributedHerder$14.onRevoked(DistributedHerder.java:898)
at org.apache.kafka.connect.runtime.distributed.WorkerCoordinator.onJoinPrepare(WorkerCoordinator.java:238)
at org.apache.kafka.clients.consumer.internals.AbstractCoordinator.ensureActiveGroup(AbstractCoordinator.java:209)
at org.apache.kafka.connect.runtime.distributed.WorkerGroupMember.poll(WorkerGroupMember.java:144)
at org.apache.kafka.connect.runtime.distributed.DistributedHerder.tick(DistributedHerder.java:266)
at org.apache.kafka.connect.runtime.distributed.DistributedHerder.run(DistributedHerder.java:159)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 4 weeks ago

Know the solutions? Share your knowledge to help other developers to debug faster.