You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Gabor Somogyi (JIRA)" <ji...@apache.org> on 2019/05/20 14:12:00 UTC

[jira] [Resolved] (SPARK-27720) ConcurrentModificationException on operating with DirectKafkaInputDStream

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

Gabor Somogyi resolved SPARK-27720.
-----------------------------------
    Resolution: Not A Problem

> ConcurrentModificationException on operating with DirectKafkaInputDStream
> -------------------------------------------------------------------------
>
>                 Key: SPARK-27720
>                 URL: https://issues.apache.org/jira/browse/SPARK-27720
>             Project: Spark
>          Issue Type: Bug
>          Components: DStreams
>    Affects Versions: 2.4.1, 2.4.3
>            Reporter: ov7a
>            Priority: Minor
>
> If a DirectKafkaInputDStream is started in one thread and is being stopped in another thread (e.g. by shutdown hook) a java.util.ConcurrentModificationException (KafkaConsumer is not safe for multi-threaded access) is thrown.
> This happens even if "spark.streaming.kafka.consumer.cache.enabled" is set to "false".
> MWE: https://gist.github.com/ov7a/fc783315ea252a03d51804ce326a13b1
>  



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org