[ 
https://issues.apache.org/jira/browse/FLINK-9349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16486921#comment-16486921
 ] 

ASF GitHub Bot commented on FLINK-9349:
---------------------------------------

Github user snuyanzin commented on the issue:

    https://github.com/apache/flink/pull/6040
  
    @tzulitai thank you for your review and comments
    based on your comments I have a question. Could you please clarify it?
    
    You mentioned Flink's `OneShotLatch ` and `CheckedThread ` at the same time 
in some Kafka connector's tests used `AtomicReference`, `Thread` and etc. (I 
used one of them as an example while writing my version of the test). Just to 
be on the sage am I right that `OneShotLatch ` and `CheckedThread ` in tests 
are more preferable or are there some rules/limitations/whatever?


> KafkaConnector Exception  while fetching from multiple kafka topics
> -------------------------------------------------------------------
>
>                 Key: FLINK-9349
>                 URL: https://issues.apache.org/jira/browse/FLINK-9349
>             Project: Flink
>          Issue Type: Bug
>          Components: Kafka Connector
>    Affects Versions: 1.4.0, 1.5.0
>            Reporter: Vishal Santoshi
>            Assignee: Sergey Nuyanzin
>            Priority: Critical
>             Fix For: 1.6.0, 1.4.3, 1.5.1
>
>         Attachments: Flink9349Test.java
>
>
> ./flink-connectors/flink-connector-kafka-0.9/src/main/java/org/apache/flink/streaming/connectors/kafka/internal/Kafka09Fetcher.java
>  
> It seems the List subscribedPartitionStates was being modified when 
> runFetchLoop iterated the List.
> This can happen if, e.g., FlinkKafkaConsumer runs the following code 
> concurrently:
>                 kafkaFetcher.addDiscoveredPartitions(discoveredPartitions);
>  
> {code:java}
>  java.util.ConcurrentModificationException
>       at 
> java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:966)
>       at java.util.LinkedList$ListItr.next(LinkedList.java:888)
>       at 
> org.apache.flink.streaming.connectors.kafka.internal.Kafka09Fetcher.runFetchLoop(Kafka09Fetcher.java:134)
> {code}



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

Reply via email to