Gyula Fora created FLINK-6263:
---------------------------------

             Summary: Leader error in Kafka producer on leader change (broker 
restart/failrue)
                 Key: FLINK-6263
                 URL: https://issues.apache.org/jira/browse/FLINK-6263
             Project: Flink
          Issue Type: Bug
          Components: Kafka Connector
    Affects Versions: 1.2.0
            Reporter: Gyula Fora


We have observed the following error in the Kafka producer

java.lang.Exception: Failed to send data to Kafka: This server is not the 
leader for that topic-partition.
        at 
org.apache.flink.streaming.connectors.kafka.FlinkKafkaProducerBase.checkErroneous(FlinkKafkaProducerBase.java:376)
        at 
org.apache.flink.streaming.connectors.kafka.FlinkKafkaProducerBase.invoke(FlinkKafkaProducerBase.java:293)
        at 
org.apache.flink.streaming.api.operators.StreamSink.processElement(StreamSink.java:38)
        at 
org.apache.flink.streaming.runtime.io.StreamInputProcessor.processInput(StreamInputProcessor.java:185)
        at 
org.apache.flink.streaming.runtime.tasks.OneInputStreamTask.run(OneInputStreamTask.java:63)
        at 
org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:261)
        at org.apache.flink.runtime.taskmanager.Task.run(Task.java:656)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.kafka.common.errors.NotLeaderForPartitionException: This 
server is not the leader for that topic-partition.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to